[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
--- Comment #18 from pluto at agmk dot net 2006-07-03 16:55 --- (In reply to comment #17) > (In reply to comment #16) > > ohh, 3.3.6 also fails. > > That is a different issue and really should be filed in a different bug. The > issue there is C++'s enums are only defined for those two values. reported in PR28236 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681
[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
--- Comment #17 from pinskia at gcc dot gnu dot org 2006-07-03 15:34 --- (In reply to comment #16) > ohh, 3.3.6 also fails. That is a different issue and really should be filed in a different bug. The issue there is C++'s enums are only defined for those two values. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681
[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
--- Comment #16 from pluto at agmk dot net 2006-07-03 15:30 --- (In reply to comment #15) > 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 > ohh, 3.3.6 also fails. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681
[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
--- 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
[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.0.3 |4.0.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681
[Bug c++/20681] [4.0/4.1/4.2 Regression] wrong "control reaches" warning with switches
--- Comment #14 from pinskia at gcc dot gnu dot org 2005-12-13 15:02 --- *** Bug 25390 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pmladek at suse dot cz http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681