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

           Summary: Unnamed bitfield causes warning
           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]


typedef struct {
        int a; int : 24; char b;
} S;

S a = { 1, 2 };

results in 

test.c:5:12: warning: excess elements in array initializer
S a = { 1, 2 };
           ^
1 diagnostic generated.

which is wrong.


-- 
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