/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 13:12:45 +0000 (13:12 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 13:12:45 +0000 (13:12 +0000)
commitf7eac43d7b4697fcab0779c397ce5c5e27d92093
treec5f8fdf72661f4b38ac0df96db69c144f05c6a87
parent571e5fe1b51a6c1b693218394fc7f82be06e99a0
/cp
2015-10-29  Paolo Carlini  <paolo.carlini@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.carlini@oracle.com>

PR c++/67845
* g++.dg/other/cv_func4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229523 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/cv_func4.C [new file with mode: 0644]