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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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;
 exx(x);

 end:

   for (int i = 0; i < argc; ++i)
   {
     puts(argv[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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to