[LLVMbugs] [Bug 16678] New: Wrong behavior for large integer literal with -std=c89

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 22 18:04:22 PDT 2013


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

            Bug ID: 16678
           Summary: Wrong behavior for large integer literal with -std=c89
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Testcase (with -std=c89 on a target where long is 32 bits):

extern int a[__LONG_MAX__ == 2147483647 ? 1 : -1];
extern int a[-2147483648 > 0 ? 1 : -1];

There should be no errors on this testcase.  clang currently prints an error.

(There might be a similar issue in the preprocessor; the C89 rules aren't
really clear.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130723/9c7b73e7/attachment.html>


More information about the llvm-bugs mailing list