------- Comment #1 from rguenth at gcc dot gnu dot org  2009-07-15 09:37 -------
Confirmed.  4.2 reports

g++-4.2 -Wall t.C 
t.C: In function ‘const A a()’:
t.C:6: warning: control reaches end of non-void function


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
      Known to fail|                            |4.3.3 4.4.0 4.5.0
      Known to work|                            |4.2.4
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-15 09:37:13
               date|                            |
            Summary|g++ doesnt report missing   |[4.3/4.4/4.5 Regression] g++
                   |return if return is of type |doesnt report missing return
                   |const <type>                |if return is of type const
                   |                            |<type>
   Target Milestone|---                         |4.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40749

Reply via email to