-
Notifications
You must be signed in to change notification settings - Fork 258
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] Interpolation lowers unparenthesized #828
Labels
bug
Something isn't working
Comments
I have always thought that interpolation should use |
Thanks! I might do something similar to |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Title: Interpolation lowers unparenthesized.
Minimal reproducer (https://cpp2.godbolt.org/z/nzzPsq8n6):
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:
CPP2_UFCS_0(clear, ("`" + cpp2::to_string(0) + "`"));
Actual result and error:
"`" + cpp2::to_string(0) + CPP2_UFCS_0(clear, "`");
Cpp2 lowered to Cpp1:
Output:
The text was updated successfully, but these errors were encountered: