[LLVMbugs] [Bug 10137] Invalid "goto into protected scope" error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 14 19:56:10 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #6 from Douglas Gregor <dgregor at apple.com> 2011-06-14 21:56:09 CDT ---
With bug 10034, the type was a POD type, so the code was well-formed according
to the C++ standard and we have to accept it.

With this bug, the type is non-POD, so the code is ill-formed in C++98/03.
Since GCC also rejects it, I see no reason to accept this ill-formed code.

In C++0x, the rules changed and this code because well-formed.

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