-
Notifications
You must be signed in to change notification settings - Fork 259
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] UFCS fails during constant evaluation only #788
Comments
My reading of https://eel.is/c++draft/expr.const#8 #506's resolution for #550 adds quite some complexity to Cppfront. |
I have potential solutions in mind for this one. Maybe trial constant evaluation can be leveraged for a seamless user experience. |
|
(Now?) |
Title: UFCS fails during constant evaluation only.
Description:
Given a parameter named after the function being called,
UFCS will fail during constant evaluation only
in the case UFCS would call a member function.
Minimal reproducer (https://cpp2.godbolt.org/z/jKWG4boaq, https://compiler-explorer.com/z/zeqW6MEPK):
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: A well-formed program that calls the member function.
Actual result and error:
Cpp2 lowered to Cpp1:
Output:
The text was updated successfully, but these errors were encountered: