[LLVMbugs] [Bug 11486] New: union { struct { }; } foo = { .bar = 0 };

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 5 21:20:01 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11486

             Bug #: 11486
           Summary: union { struct { }; } foo = { .bar = 0 };
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chisophugis at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7676
  --> http://llvm.org/bugs/attachment.cgi?id=7676
Clang's error dump

That's about it.

$ cat >kill-clang.c
union { struct { }; } foo = { .bar = 0 };
$ clang -c kill-clang.c
<<long error dump (attached)>>

Another variation that seems to cause the same crash:
int x = (union { struct { }; }) { .bar = 0 };




$ clang --version                 
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-pc-linux-gnu
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list