[Bug c/70073] [6 Regression] -Werror=return-type ignores call to function with attribute noreturn

douglas.bagnall at catalyst dot net.nz gcc-bugzilla@gcc.gnu.org
Fri Mar 4 04:48:00 GMT 2016


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

Douglas Bagnall <douglas.bagnall at catalyst dot net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Douglas Bagnall <douglas.bagnall at catalyst dot net.nz> ---
(In reply to Andrew Pinski from comment #3)
> This sounds more like an issue with samba's source if __attribute__ is being
> defined away.

Agreed. Presumably older GCCs were failing to notice or reasoning away the
possible wrong return type.

Thanks for the -g3 tip. I will reopen this in the unlikely event I find it is a
real bug.


More information about the Gcc-bugs mailing list