------- Comment #15 from pluto at agmk dot net 2006-07-03 15:27 ------- one more valid code rejected by 4.1/4.2:
typedef enum { foo, bar } e;
int zoo( e __e )
{
switch ( __e )
{
case foo: return -1;
case bar: return +1;
}
}
$ x86_64-gnu-linux-g++ bug.cpp -c -Wall -O2
bug.cpp: In function 'int zoo(e)':
bug.cpp:9: warning: control reaches end of non-void function
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681
