[Bug c++/54278] [6 regression] __attribute__((noreturn)) called from destructor when another auto-scoped variable has a non-trivial dtor erroneously fails with "control reaches end of non-void function" at -O0

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 20 14:40:00 GMT 2018


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.0
   Target Milestone|---                         |6.4
            Summary|__attribute__((noreturn))   |[6 regression]
                   |called from destructor when |__attribute__((noreturn))
                   |another auto-scoped         |called from destructor when
                   |variable has a non-trivial  |another auto-scoped
                   |dtor erroneously fails with |variable has a non-trivial
                   |"control reaches end of     |dtor erroneously fails with
                   |non-void function" at -O0   |"control reaches end of
                   |                            |non-void function" at -O0

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Work properly with gcc8, it looks like 6 is the only branch this bug is still
relevant for


More information about the Gcc-bugs mailing list