-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang++] undeduced type in IR-generation UNREACHABLE executed at /root/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:267! #112153
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
Labels
clang:codegen
IR generation bugs: mangling, exceptions, etc.
crash-on-invalid
generated by fuzzer
regression:16
Regression in 16 release
Comments
@llvm/issue-subscribers-clang-codegen Author: Yihan Yang (yijan4845)
**This testcase is generated by a fuzzer.**
Compiler Explorer: https://godbolt.org/z/WYveMhMK3 This invalid code will crash on both Clang Trunk and Clang Assertion Trunk, it seems that this goes back to clang-16: template<typename T> void g(T t) {
typename T::X x = x;
}
struct A { template<typename T> struct X { X(T); }; };
void h(A a) { g(a); } The stack dump and error message are similar to 33335 and 55872. Stack dump:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:codegen
IR generation bugs: mangling, exceptions, etc.
crash-on-invalid
generated by fuzzer
regression:16
Regression in 16 release
This testcase is generated by a fuzzer.
Compiler Explorer: https://godbolt.org/z/WYveMhMK3
This invalid code will crash on both Clang Trunk and Clang Assertion Trunk, it seems that this goes back to clang-16:
The stack dump and error message are similar to 33335 and 55872.
Stack dump:
The text was updated successfully, but these errors were encountered: