]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/18313 (Missing warning for superfluous const's in return types)
authorDirk Mueller <dmueller@suse.de>
Thu, 30 Nov 2006 23:08:27 +0000 (23:08 +0000)
committerDirk Mueller <mueller@gcc.gnu.org>
Thu, 30 Nov 2006 23:08:27 +0000 (23:08 +0000)
commit1891dec445aecf8afa412e8dcd0d9577773277dc
tree3dac1ff31be119a1ecd4986d6ad3d0334eeefd1c
parente25615581ddc18d33ca84c6c65d44c2e33be8b3a
re PR c++/18313 (Missing warning for superfluous const's in return types)

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.

From-SVN: r119382
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wreturn-type-4.C [new file with mode: 0644]