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

           Summary: crash on bitfield with incomplete type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


clang crashes on this
--
enum e0;
struct s0 {
  enum e0 f : 1;
};
--

It would be nice to get gcc's extra warning here about width:
--
ddun...@lordcrumb:Sema$ gcc -fsyntax-only boom.c
boom.c:3: warning: 'f' is narrower than values of its type
boom.c:3: error: field 'f' has incomplete type
--


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to