-
Notifications
You must be signed in to change notification settings - Fork 260
[BUG] Argument list parentheses kept in non-local initialization #597
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
Comments
This is just a duplicate of #503. |
What is the meaning of this? |
If you mean the extra semicolon, there's a few open bugs in the area: https://github.com/hsutter/cppfront/issues?q=is%3Aissue+is%3Aopen+unnamed+declaration+in%3Atitle+. Otherwise, |
Opened #611 for that now. |
Thanks for the explanation! |
* fix(parse): add missing condition for "inside initializer" * test: use the test case from #597
* fix(parse): add missing condition for "inside initializer" * test: use the test case from hsutter#597
Title: Argument list parentheses kept in non-local initialization.
Minimal reproducer (https://cpp2.godbolt.org/z/7Gcvzzov8):
Commands:
cppfront main.cpp2 clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -fsanitize=undefined -Werror=unused-result -I . main.cpp
Expected result: No warnings; same as the
u
inmain
.Actual result and error:
Cpp2 lowered to Cpp1:
The text was updated successfully, but these errors were encountered: