https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109554
Andreas Schwab <sch...@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> --- Failure to return a value in a non-void function invokes undefined behaviour. For C++ this is independent of whether the caller uses the return value.