-
Notifications
You must be signed in to change notification settings - Fork 249
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
[BUG] @print
shortcomings
#840
Comments
This is #479's test:
What it prints:
And where the errors are at:
|
|
|
@print
shortcomings
Very sorry for the questions but what does |
For Yes, metafunctions form a pipeline: #447 (comment). |
Thanks for the answer! |
Thanks! I think I got them all, including the ones in your test cases and a few more... but please check and reopen with a new test case if I missed some. |
Thank you.
|
Good point, that's the simplest fix for now so I'll implement it that way. Thanks! |
With program-defined metafunctions (#907), that can be generally true for all metafunctions. |
And update a few stray regression test results post-merges
Title: Single-expression functions print with extra semicolon.
Description:
This makes the printed code invalid Cpp2:
Minimal reproducer (https://cpp2.godbolt.org/z/jGb31dK74):
Commands:
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp
Expected result: Printed Cpp2 code to be valid.
Actual result and error:
public x: std::function<void()> = :() = _ = 0;;
.Cpp2 lowered to Cpp1:
Output:
See also:
The text was updated successfully, but these errors were encountered: