https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122835

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is documented:
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Labels-as-Values.html
Unlike a normal goto, in GNU C++ a computed goto will not call destructors for
objects that go out of scope. 
although maybe that should be clarified that it isn't just GNU C++ and that it
affects cleanup attribute as well.
For normal gotos the compiler can find out which destructors need to be called
on the particular goto (if any).
For computed gotos, longjmp etc. it can't.

Reply via email to