Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"octal digit expected" error in array literal has wrong line/column #17499

Open
Herringway opened this issue Dec 9, 2024 · 0 comments · May be fixed by #17500
Open

"octal digit expected" error in array literal has wrong line/column #17499

Herringway opened this issue Dec 9, 2024 · 0 comments · May be fixed by #17500

Comments

@Herringway
Copy link
Contributor

auto foo = [














09];

This code produces the expected Error: octal digit expected, not '9' error, but the line and column point to the start of the array literal instead of the 09. In this example, it reports sample.d(1,12) instead of the expected sample.d(16,1).

Removing the braces causes dmd to report the correct line and column values.

@dkorpel dkorpel linked a pull request Dec 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant