[Bug c++/98368] Seg fault on template method missing required return statement
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 18 11:36:41 GMT 2020
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.
More information about the Gcc-bugs
mailing list