[Bug c++/67845] ICE on invalid use of const qualifier on x86_64-linux-gnu in merge_types, at cp/typeck.c:854

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 29 13:13:00 GMT 2015


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

Added:
    trunk/gcc/testsuite/g++.dg/other/cv_func4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list