This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18313] Missing warning for superfluous const's in return types
- From: "mueller at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 23:08:40 -0000
- Subject: [Bug c++/18313] Missing warning for superfluous const's in return types
- References: <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mueller at gcc dot gnu dot org 2006-11-30 23:08 -------
Subject: Bug 18313
Author: mueller
Date: Thu Nov 30 23:08:27 2006
New Revision: 119382
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119382
Log:
2006-12-01 Dirk Mueller <dmueller@suse.de>
PR c++/18313
* decl.c (grokdeclarator): Warn for type qualifiers on return
type for non-dependent types.
* pt.c (tsubst_function_type): Warn for type qualifiers on
return type for dependent types.
* g++.dg/warn/Wreturn-type-4.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wreturn-type-4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18313