This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40749] [4.3/4.4/4.5 Regression] g++ doesnt report missing return if return is of type const <type>



------- Comment #4 from simartin at gcc dot gnu dot org  2009-07-26 08:16 -------
Subject: Bug 40749

Author: simartin
Date: Sun Jul 26 08:16:41 2009
New Revision: 150097

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150097
Log:
gcc/cp/

2009-07-26  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/40749
        * decl.c (grokdeclarator): Do not set TREE_NO_WARNING for functions
        with a qualified return type.

gcc/testsuite/

2007-07-26  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/40749
        * g++.dg/warn/Wreturn-type-6.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wreturn-type-6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]