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

           Summary: Strange parse error with __extension__ operator
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Testcase:
int a() {
  __extension__ (*(char*)0) = 1;
}

clang output:
<stdin>:2:29: error: expected ';' after expression
  __extension__ (*(char*)0) = 1;
                            ^
<stdin>:2:29: error: expected expression
<stdin>:2:3: warning: expression result unused
  __extension__ (*(char*)0) = 1;
  ^             ~~~~~~~~~~~
3 diagnostics generated.

gcc accepts this without any errors/warnings.


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