This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80458] [-Wreturn-type] false negative on missing return statement in a member function


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The two cases are not equivalent, because the member function is also inline.
If you add 'inline' to the second example you get no warning for that one too.

In both cases you get a warning for the inline function if it is used.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]