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

Khokholkov Vladimir <xvladsoft at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |WONTFIX

--- Comment #3 from Khokholkov Vladimir <xvladsoft at yahoo dot com> ---
(In reply to Xi Ruoyao from comment #2)
> And it's clearly documented in https://gcc.gnu.org/gcc-8/changes.html:
> 
> Flowing off the end of a non-void function is considered unreachable and may
> be subject to optimization on that basis. As a result of this change,
> -Wreturn-type warnings are enabled by default for C++.
> 
> If you insist on ignoring the -Wreturn-type warning, you are doing things
> wrong.

I see...
Ok, thanks!
I think the issue should be closed then.
(P.S. I do not ignore that message, just accidentally found this case and
decided to investigate).

B.R.
Vladimir.

Reply via email to