LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 28 - File fails to compile
Summary: File fails to compile
Status: RESOLVED FIXED
Alias: None
Product: tools
Classification: Unclassified
Component: llvm-gcc (show other bugs)
Version: trunk
Hardware: PC Windows 2000
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2003-10-09 23:02 PDT by Chris Lattner
Modified: 2010-02-22 12:50 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lattner 2003-10-09 23:02:59 PDT
struct Foo {
    unsigned a;
    unsigned b;
    unsigned c;
};

struct Bar {
    union {
        void **a;
        struct Foo b;
    }u;
};

struct Bar test = {0};
Comment 1 Chris Lattner 2003-10-09 23:03:28 PDT
This was distilled from a testcase provided by Bill from HDF5
Comment 2 Chris Lattner 2003-10-09 23:31:41 PDT
This is now fixed.  Tested by:
test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c
Comment 3 Chris Lattner 2003-10-12 01:18:22 PDT
This should be fixed another way in the C front-end.  Reopening bug as a
reminder to myself.
Comment 4 Chris Lattner 2003-10-12 02:25:41 PDT
Ok, nevermind.  This is fixed for real.