re PR c++/67845 (ICE on invalid use of const qualifier on x86_64-linux-gnu in merge_t...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 29 Oct 2015 13:12:45 +0000 (13:12 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Oct 2015 13:12:45 +0000 (13:12 +0000)
commitf58b8cd70ec2c2a6affed7de996d266998352322
treec5f8fdf72661f4b38ac0df96db69c144f05c6a87
parent5148d2e38fa5ff6427fca48cb592ca34a46af3f9
re PR c++/67845 (ICE on invalid use of const qualifier on x86_64-linux-gnu in merge_types, at cp/typeck.c:854)

/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.

From-SVN: r229523
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/cv_func4.C [new file with mode: 0644]