[Bug c++/81508] Warning: Control reaches end of non-void function - noreturn attribute ignored if nontrivial destructor runs afterwards

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 5 09:39:21 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=80032
         Resolution|---                         |FIXED
           Keywords|                            |diagnostic
   Target Milestone|---                         |7.0

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this was fixed in GCC 7 (and maybe 6.5.0)  only by accident.  In the sense
the patches to fix PR 80032 caused the IR to be enough better that GCC no
longer warns.


More information about the Gcc-bugs mailing list