[Bug c++/43943] New: "warning: no return statement in function returning non-void" should be an error

2010-04-29 Thread david at rothlis dot net
ct: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: david at rothlis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43943

[Bug c++/43943] "warning: no return statement in function returning non-void" should be an error

2010-04-29 Thread david at rothlis dot net
--- Comment #3 from david at rothlis dot net 2010-04-30 06:05 --- > a function with a missing return is valid I just can't reconcile that with the following line from the C++ standard: "It is now invalid to return (explicitly or implicitly) from a function which is declare

[Bug c++/43943] "warning: no return statement in function returning non-void" should be an error

2010-04-30 Thread david at rothlis dot net
--- Comment #6 from david at rothlis dot net 2010-04-30 14:01 --- OK, thanks for the explanation! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43943