We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title: Digit separator doesn't parse.
Minimal reproducer (https://cpp2.godbolt.org/z/Pn4zd7MeM):
niam: () = { _ = 0'1; } // Not OK. main: () = { _ = 0'1; // OK }
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -Werror=unused-value -Werror=unused-parameter -I . main.cpp
Expected result: Both to work.
Actual result and error:
main.cpp2... main.cpp2(5,0): error: end of file reached with 1 missing } to match earlier { on line 1
The text was updated successfully, but these errors were encountered:
function_declaration
This causes the same error:
if 1 { _ = 0'1; }
Seems to be caused by this line:
cppfront/source/io.h
Line 784 in c1d3e0e
Sorry, something went wrong.
Digit separator doesn't parse with opening brace
c545ebb
Fixes hsutter#862.
fb820eb
Yup, that was the offending line. Thanks!
Successfully merging a pull request may close this issue.
Title: Digit separator doesn't parse.
Minimal reproducer (https://cpp2.godbolt.org/z/Pn4zd7MeM):
Commands:
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -Werror=unused-value -Werror=unused-parameter -I . main.cpp
Expected result: Both to work.
Actual result and error:
The text was updated successfully, but these errors were encountered: