-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
enhancementSomething can be improvedSomething can be improvedfixedSomething works now, yay!Something works now, yay!good first issueGood for newcomersGood for newcomers
Description
Describe the bug
The error_badbrace string is significantly goofy looking
Command-line test case
#include <regex>
int main()
{
try {
std::regex r("a{4,3}");
puts("it's legal");
} catch (std::exception& e) {
puts(e.what());
}
}
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 issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementSomething can be improvedSomething can be improvedfixedSomething works now, yay!Something works now, yay!good first issueGood for newcomersGood for newcomers