-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[clang] Assertion `NumInitElements <= NumArrayElements' failed. #113187
Comments
@llvm/issue-subscribers-clang-codegen Author: Yihan Yang (yijan4845)
**This testcase is generated by a fuzzer.**
Compiler Explorer: https://godbolt.org/z/ve9Yox5q5 This invalid code will crash on Clang Assertion Trunk: union { char a[]; } z = {};
union { char a[]; } z0 = {z.a[0]};
char keep(){
return z0.a[0];
} It seems that this goes back to clang-15. Stack dump:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This testcase is generated by a fuzzer.
Compiler Explorer: https://godbolt.org/z/ve9Yox5q5
This invalid code will crash on Clang Assertion Trunk:
It seems that this goes back to clang-15.
Stack dump:
The text was updated successfully, but these errors were encountered: