From 53400b9e49e8201a22b81376a960eb7ea8cedf92 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Wed, 8 Oct 2003 00:39:21 +0200 Subject: [PATCH] re PR c++/11097 (using template operator is broken) PR c++/11097 * pt.c (tsubst_decl): Substitute also the DECL_NAME node of USING_DECL. From-SVN: r72208 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/pt.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3cbb85c7dbd..80cc65e61fb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2003-10-06 Giovanni Bajo + + PR c++/11097 + * pt.c (tsubst_decl): Substitute also the DECL_NAME node of + USING_DECL. + 2003-10-06 Mark Mitchell PR c++/10147 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index aad6c6038ff..f0dc0e13368 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -6076,6 +6076,8 @@ tsubst_decl (tree t, tree args, tree type, tsubst_flags_t complain) TREE_TYPE (r) = void_type_node; DECL_INITIAL (r) = tsubst_copy (DECL_INITIAL (t), args, complain, in_decl); + DECL_NAME (r) + = tsubst_copy (DECL_NAME (t), args, complain, in_decl); TREE_CHAIN (r) = NULL_TREE; } break; -- 2.30.2