http://llvm.org/bugs/show_bug.cgi?id=6477
Summary: Goto over object definition causes build error
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
When you compile the attached file with clang++, it gives this error:
gototest.cxx:5:5: error: illegal goto into protected scope
goto ED_END;
^
gototest.cxx:6:18: note: jump bypasses variable initialization
std::fstream f;
If you comment out line 6, everything works.
This is a regression, as svn checkout from a couple of days ago worked just
fine. The same code compiles on g++ and MSVC without errors.
--
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