-
Notifications
You must be signed in to change notification settings - Fork 13.5k
C++ frontend crash when expanding parameter packs in a fold over a requires expression #72418
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
@llvm/issue-subscribers-c-20 Author: None (JoniSt)
Dear Clang maintainers,
I've hit a crash in the C++ front-end when compiling the following C++20 code, which I believe to be valid:
The crash occurs both with the regular STL, as well as with the minimal std templates I've included in the reproducer in order to minify it a bit. It appears that expanding a parameter pack within a requires expression trips the frontend up. Compiler versions tested: 17.0.1, trunk Godbolt (minified std templates): https://godbolt.org/z/baxqv6vra Crash output:
Thanks for your support! |
@llvm/issue-subscribers-clang-frontend Author: None (JoniSt)
Dear Clang maintainers,
I've hit a crash in the C++ front-end when compiling the following C++20 code, which I believe to be valid:
The crash occurs both with the regular STL, as well as with the minimal std templates I've included in the reproducer in order to minify it a bit. It appears that expanding a parameter pack within a requires expression trips the frontend up. Compiler versions tested: 17.0.1, trunk Godbolt (minified std templates): https://godbolt.org/z/baxqv6vra Crash output:
Thanks for your support! |
Interesting clang-15 requires typename on this line but won't crash once we add it: https://godbolt.org/z/8T3of7bM5 using type = typename fake_tuple_element<I - 1, Rest...>::type; I think this looks like a regression. Worth noting only MSVC accepts this: https://godbolt.org/z/3bYKWf5ob |
Might be a duplicate of: #64607 |
ISTM that this is working on trunk. Closing. |
Uh oh!
There was an error while loading. Please reload this page.
Dear Clang maintainers,
I've hit a crash in the C++ front-end when compiling the following C++20 code, which I believe to be valid:
The crash occurs both with the regular STL, as well as with the minimal std templates I've included in the reproducer in order to minify it a bit.
It appears that expanding a parameter pack within a requires expression trips the frontend up.
Compiler versions tested: 17.0.1, trunk
Godbolt (minified std templates): https://godbolt.org/z/baxqv6vra
Godbolt (regular STL): https://godbolt.org/z/eKjW99qoE
Crash output:
Thanks for your support!
The text was updated successfully, but these errors were encountered: