[LLVMbugs] [Bug 6477] Goto over object definition causes build error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 3 11:17:49 PST 2010


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Chris Lattner <clattner at apple.com> 2010-03-03 13:17:49 CST ---
I'm not sure what you mean, this is definitely invalid C++ code and gcc 4.2
rejects it:

$ gcc gototest.cxx 
gototest.cxx: In function ‘int main(int, char**)’:
gototest.cxx:8: error: jump to label ‘ED_END’
gototest.cxx:5: error:   from here
gototest.cxx:6: error:   crosses initialization of ‘std::fstream f’

We recently started enforcing this requirement.

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