-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
reference to local binding fails in enclosing function #48582
Comments
(For reference, if I understand correctly, this should be allowed by P1091R3 and/or P1381R1; I have also tested this against clang 12.0.5.) |
Yes C++20 does fix this but Clang still complains about it. |
I just checked clang-14 - it is still affected. Is there an estimate when this will be fixed? |
Short test case on Compiler Explorer |
@llvm/issue-subscribers-clang-frontend |
- move char_parser to own header - add decimal_literal parser - adder basic convert functions - Hit Clang's [reference to local binding fails in enclosing function #48582]( llvm/llvm-project#48582) - cosmetic printing - using constexpr LUT for exp base 10
Seems the issue has been fixed in the latest development version (clang (trunk) on Compiler Explorer). |
Extended Description
The attached testcase fails in clang++{9,10,11}:
It succeeds in gcc-10.
The text was updated successfully, but these errors were encountered: