[LLVMbugs] [Bug 4306] New: clang missing pedantic warning for non-constant initializer for aggregate in c89 mode

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 3 05:46:12 PDT 2009


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

           Summary: clang missing pedantic warning for non-constant
                    initializer for aggregate in c89 mode
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase (clang -c89 -pedantic):
struct x {int x;};
void a(int y) { struct x x = {y}; }

This should warn because it's a constraint violation in C89.


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