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

           Summary: clang is overly permissive with statement expressions
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


clang accepts:
-- 
int f0() {
  int x = sizeof( ({ L1: g0(); 10;}) );
  goto L1;
}
--

Need I say more?

The sizeof here is overkill, gcc seems to reject all jumps into statement
expressions. A nice tether to the brink of insanity.


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