[Bug c++/47904] [4.5 Regression] ICE with DECL_PARM_INDEX (this) in cp_tree_equal

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 27 17:12:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47904

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-02-27 17:11:22 UTC ---
Author: jason
Date: Sun Feb 27 17:11:19 2011
New Revision: 170544

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170544
Log:
    PR c++/47904
    * tree.c (cp_tree_equal) [PARM_DECL]: Don't crash on
    DECL_ARTIFICIAL parms.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/template/this-targ1.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/tree.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list