https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98368
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You can do that in C (if you ignore the return value of the function), but not in C++, where it is UB already to fall through the end of function returning non-void.