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

           Summary: Microsoft specific integer suffix parsed incorrectly
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Compilation error for correct suffix ("i64"):

$ echo "void foo() { (void)0x1i64; }" | clang-cc -fms-extensions
<stdin>:1:27: error: invalid suffix 'i64' on integer constant
void foo() { (void)0x1i64; }
                     ^
1 diagnostic generated.


No compilation error for incorrect suffix ("i64u"):

$ echo "void foo() { (void)0x1i64u; }" | clang-cc -fms-extensions
$ 

See NumericLiteralParser::NumericLiteralParser


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

Reply via email to