-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<regex>: Goofy message for error_badbrace #4993
Comments
Yes, I agree. Lines 500 to 502 in faccf00
Probably a copy-paste error. Look at the messages above: Lines 491 to 499 in faccf00
https://godbolt.org/z/rKrbha61c Click to expand unrelated discussion of other regex behavior:By the way, we found a bug in the GCC standard library. I will check if that bug has been reported by someone; if not, I will create an issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
We talked about this at the weekly maintainer meeting and we agree that the error message can be easily improved. @fsb4000 As this issue is about the |
Will take a look into fixing this! |
… {} instead of { expression }
Describe the bug
The error_badbrace string is significantly goofy looking
Command-line test case
https://godbolt.org/z/Y14Exavx7
Expected behavior
The expression contained an invalid range in a {} expression.
Actual behavior
The expression contained an invalid range in a { expression }.
Why was the closing brace moved one word to the right? That's neither consistent with the C++ spec, nor with my understanding of English grammar.
STL version
Don't know, ask Godbolt
Additional context
Probably a good first issueGood for newcomers
The text was updated successfully, but these errors were encountered: