[LLVMbugs] [Bug 3167] New: Sema:: CheckForConstantInitializer should pedwarn if a constant is not a strict constant

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Dec 4 21:09:05 PST 2008


           Summary: Sema::CheckForConstantInitializer should pedwarn if a
                    constant is not a strict constant
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu

"strict" being as defined in the C99 spec.

We used to do this for the example below (in test/Sema/constant-builtins.c) but
that warning was removed when PR3130 was fixed.

short t = __builtin_constant_p(5353) ? 42 : somefunc(); // expected-warning
{{expression is not a 
constant, but is accepted as one by GNU extensions}}

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