[Bug c++/71943] Wreturn-type when combining destructor + return + __noreturn__ function

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 20 10:25:00 GMT 2016


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

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think it is fine to warn, -Wreturn* warning is done early before
optimizations (intentionally), so unreachable code that might not be yet
optimized away yet may confuse it.  Don't put unreachable code after return and
the warning will go away.


More information about the Gcc-bugs mailing list