Skip to content

llvm-gcc4 barfs on simple packed bit-fields #1586

@llvmbot

Description

@llvmbot
Bugzilla Link 1214
Resolution FIXED
Resolved on Feb 22, 2010 12:43
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

Compiling the following code gives
llvm-convert.cpp:4299: LValue TreeToLLVM::EmitLV_COMPONENT_REF(tree_node*):
Assertion `NumAlignmentUnits && "Not adjusting pointer?"' failed.

struct X {
char A : 6;
char B : 3;
} attribute((packed));

int main (void)
{
struct X x;

x.A = 1;
x.B = 2;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions