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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to