-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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 `DesiredOffset >= SizeSoFar && "elements out of order"' failed. #112556
Labels
Comments
github-actions
bot
added
the
clang
Clang issues not falling into any other category
label
Oct 16, 2024
yijan4845
added
clang:codegen
crash-on-valid
clang:frontend:fuzzer
and removed
clang
Clang issues not falling into any other category
labels
Oct 16, 2024
@llvm/issue-subscribers-clang-codegen Author: Yihan Yang (yijan4845)
**This testcase is generated by a fuzzer.**
Compiler Explorer: https://godbolt.org/z/dEnndzno1 This valid code will crash on Clang Assertion Trunk, it seems that this goes back to clang-17: struct __attribute__((packed, aligned(2))) PackedAndPadded {
~PackedAndPadded();
char c;
int n;
};
struct WithPackedAndPadded {
[[no_unique_address]] PackedAndPadded pap;
PackedAndPadded pap_1; char d;
};
WithPackedAndPadded wpap = {1, 2, 3}; Stack dump:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
This testcase is generated by a fuzzer.
Compiler Explorer: https://godbolt.org/z/dEnndzno1
This valid code will crash on Clang Assertion Trunk, it seems that this goes back to clang-17:
Stack dump:
The text was updated successfully, but these errors were encountered: