[LLVMbugs] [Bug 3228] New: Bad behavior with labels+blocks extension

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 16 22:56:30 PST 2008


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list