[LLVMbugs] [Bug 7693] Overly aggressive error: illegal goto into protected scope

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 23 14:49:40 PDT 2010


Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #2 from Douglas Gregor <dgregor at apple.com> 2010-07-23 16:49:39 CDT ---
C++ [stmt.dcl]p3 is clear that this code is ill-formed:

  A program that jumps from a point where a variable with automatic storage
duration is not in scope to a point where it is in scope is ill-formed unless
the variable has scalar type, class type with a trivial default constructor and
a trivial destructor, a cv-qualified version of one of these types, or an array
of one of the preceding types and is declared without an initializer (8.5).

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