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

Closed
Herringway opened this issue Dec 9, 2024 · 0 comments · Fixed by #17500
Closed

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

Herringway opened this issue Dec 9, 2024 · 0 comments · Fixed by #17500
Labels

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants