From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2704 invoked by alias); 8 Jul 2009 20:11:34 -0000 Received: (qmail 2560 invoked by uid 48); 8 Jul 2009 20:11:16 -0000 Date: Wed, 08 Jul 2009 20:11:00 -0000 Message-ID: <20090708201116.2559.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40684] ICE in tsubst In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dodji at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00680.txt.bz2 ------- Comment #1 from dodji at gcc dot gnu dot org 2009-07-08 20:11 ------- I could reproduce on trunk. I am testing the patchlet below: diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b4bd465..d042f98 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -12949,8 +12949,9 @@ type_unification_real (tree tparms, to explicitly check cxx_dialect here. */ if (TREE_PURPOSE (TREE_VEC_ELT (tparms, i))) { - tree arg = tsubst (TREE_PURPOSE (TREE_VEC_ELT (tparms, i)), - targs, tf_none, NULL_TREE); + tree arg = tsubst_template_arg + (TREE_PURPOSE (TREE_VEC_ELT (tparms, i)), + targs, tf_none, NULL_TREE); if (arg == error_mark_node) return 1; else -- dodji at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dodji at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-07-08 20:11:16 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684