http://llvm.org/bugs/show_bug.cgi?id=6517
Summary: Confused scope error on indirect goto
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Compiling the following gives:
void jump(void *L) {
int I = 1;
goto *L;
}
$ clang -S scope.C
scope.C:3:3: error: illegal indirect goto in protected scope, unknown effect on
scopes
goto *L;
^
scope.C:2:7: note: jump bypasses variable initialization
int I = 1;
^
2 diagnostics generated.
This is surely wrong.
--
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