Skip to content
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

llvm-gcc crashes on packed bitfield in addNewBitField #1693

Closed
llvmbot opened this issue Apr 10, 2007 · 2 comments
Closed

llvm-gcc crashes on packed bitfield in addNewBitField #1693

llvmbot opened this issue Apr 10, 2007 · 2 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 10, 2007

Bugzilla Link 1321
Resolution FIXED
Resolved on Feb 22, 2010 12:51
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

testcase:

struct X {
unsigned int e0 : 17;
unsigned int e1 : 17;
unsigned int e2 : 17;
unsigned int e3 : 17;
unsigned int e4 : 17;
unsigned int e5 : 17;
unsigned int e6 : 17;
unsigned int e7 : 17;
} attribute((packed)) x;

Compiling with the llvm-gcc C compiler:
gcc/llvm-types.cpp:1184: void StructTypeConversionInfo::addNewBitField(unsigned
int, unsigned int): Assertion `Size <= 64 && "Bitfield too large!"' failed.
packed17.c:10: internal compiler error: Aborted

Testcase reduced from Ada's s-pack17.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 12, 2007

I am testing fix.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 12, 2007

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant