For the attached program, gcc 4.0.0 20041214 (experimental) reports foo9.cpp:24: warning: control reaches end of non-void function
which is obviously incorrect. This bug isn't in 3.4.x. -- Summary: [4.0.0 regression] false report: "control reaches end of non-void function" Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jbuck at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19025