This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40749] [4.3/4.4/4.5 Regression] g++ doesnt report missing return if return is of type const <type>
- From: "simartin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2009 08:17:00 -0000
- Subject: [Bug c++/40749] [4.3/4.4/4.5 Regression] g++ doesnt report missing return if return is of type const <type>
- References: <bug-40749-17948@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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