https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67845
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Thu Oct 29 13:12:45 2015 New Revision: 229523 URL: https://gcc.gnu.org/viewcvs?rev=229523&root=gcc&view=rev Log: /cp 2015-10-29 Paolo Carlini <paolo.carl...@oracle.com> PR c++/67845 * decl.c (grokfndecl): In case of erroneous cv-qualified non-member functions consistently reset TREE_TYPE (decl) too. /testsuite 2015-10-29 Paolo Carlini <paolo.carl...@oracle.com> PR c++/67845 * g++.dg/other/cv_func4.C: New. Added: trunk/gcc/testsuite/g++.dg/other/cv_func4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog