[LLVMbugs] [Bug 6517] New: Confused scope error on indirect goto
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 5 12:35:37 PST 2010
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: unassignedclangbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list