[LLVMbugs] [Bug 2534] New: Unnamed bitfield causes warning

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 8 21:57:28 PDT 2008


           Summary: Unnamed bitfield causes warning
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu

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.

More information about the llvm-bugs mailing list