[Bug c++/35708] jump to label enters catch block
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 29 15:20:00 GMT 2008
------- Comment #7 from jason at gcc dot gnu dot org 2008-03-29 15:19 -------
The bug is that the temporary object created by the C99 compound literal syntax
doesn't have proper C++ temporary lifetime; the compiler treats it as living
until the end of the block, so the goto seems to be skipping its
initialization. The compiler talks about a catch block because it assumes that
the only artificial decl a goto could jump into is the one for the catch
parameter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708
More information about the Gcc-bugs
mailing list