
12 Apr
2010
12 Apr
'10
3:15 p.m.
On Sun, Apr 11, 2010 at 11:09:21PM -0700, Dan Bloomquist wrote:
What is this that it would compile and run without a proper return?!?
There is no requirement on any implementation that omitting a return should be an error, and rightly so, as you may have guaranteed that control flow is diverted in other ways, like exceptions, std::terminate() or other amusing ways. However, many implementations do offer diagnostic warnings on higher warning levels for such common and accidental omissions. -- Lars Viklund | zao@acc.umu.se