https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109554
Andreas Schwab <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andreas Schwab <[email protected]> --- 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.
