[LLVMbugs] [Bug 10137] New: Invalid "goto into protected scope" error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 14 16:39:18 PDT 2011


           Summary: Invalid "goto into protected scope" error
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

A small variation from the test is bug 10034 still fails:
void puts(const char*);

struct Y {};
struct X : Y {};

void exx(X) {}

int main(int argc, char **argv)
 if (argc > 3)
   goto end;

 X x;


   for (int i = 0; i < argc; ++i)

   return 0;
Are we OK with extending clang to accept it?

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