[Bug other/27654] bogous/missed diagnostic at -Os.
--- Comment #1 from pluto at agmk dot net 2006-05-18 10:12 --- #include string bool foo( bool b1, bool b2 ) { std::string what; std::size_t size = what.size(); if ( b1 size ) { if ( b2 ) return true; else return false; } else return false; } $ i486-gnu-linux-g++ bug2.cpp -c -Wall -Os bug2.cpp: In function 'bool foo(bool, bool)': bug2.cpp:15: warning: control reaches end of non-void function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27654
[Bug other/27654] bogous/missed diagnostic at -Os.
--- Comment #2 from pluto at agmk dot net 2006-05-18 10:14 --- 3.3.6 doesn't report about 'control reaches...'. 4.0 and 4.2 not tested. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27654
[Bug other/27654] bogous/missed diagnostic at -Os.
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-05-18 16:49 --- There are two different bugs here. The first testcase is a dup of PR 20681. The second testcase is a dup of bug 25973. Second those are not unused objects as they have side effects on their constructors/deconstructors. I am going to close this as invalid based on the second reason as you seem to blame that first. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27654