This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bad inlining


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]