This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bad inlining
- To: parkes at sierravista dot com
- Subject: Re: bad inlining
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 16 Jul 1998 09:11:54 +0200
- CC: egcs-bugs at cygnus dot com
- References: <199807160118.SAA21940@soquel.sierravista.com>
> But isn't it a fatal error for a function not to return a value in C++?
No, it is undefined behaviour. In general, determining whether a
function returns a value under all conditions is equivalent to the
halting problem. If you compile with -Wall, g++ will warn in some
cases.
Martin