-
Notifications
You must be signed in to change notification settings - Fork 11.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 `NumBits >= MIN_INT_BITS && "bitwidth too small"' failed on valid code #111610
Labels
clang:codegen
clang:frontend:fuzzer
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
github-actions
bot
added
the
clang
Clang issues not falling into any other category
label
Oct 9, 2024
EugeneZelenko
added
clang:codegen
crash
Prefer [crash-on-valid] or [crash-on-invalid]
clang:frontend:fuzzer
and removed
clang
Clang issues not falling into any other category
labels
Oct 9, 2024
@llvm/issue-subscribers-clang-codegen Author: Yihan Yang (yijan4845)
**This testcase is generated by a fuzzer.**
Compiler Explorer: https://godbolt.org/z/nh6G4q779 This valid code will crash on Clang Assertion Trunk, it seems that this goes back to clang 3.1: typedef struct {
struct { int a[]; } b;
} S;
void foo() {
__builtin_va_list list;
__builtin_va_arg(list, S);
} Stack dump:
|
Maybe related: #48600 |
@AaronBallman Do you think this should be valid? gcc accepts. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:codegen
clang:frontend:fuzzer
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
This testcase is generated by a fuzzer.
Compiler Explorer: https://godbolt.org/z/nh6G4q779
This valid code will crash on Clang Assertion Trunk, it seems that this goes back to clang 3.1:
Stack dump:
The text was updated successfully, but these errors were encountered: