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

           Summary: Bad behavior with labels+blocks extension
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


int a() {A:return ^{A:return 1;}();}
"clang -fblocks" gives an error; llvm-gcc accepts this.

int a() {goto A; return ^{A:return 1;}();}
"clang -fblocks" accepts this.  llvm-gcc gives an error.

It's hard to say what the correct behavior is without a complete specification,
but defining sane semantics for the second testcase seems difficult at best.


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