aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@libero.it>2003-10-08 00:39:21 +0200
committerBernardo Innocenti <bernie@gcc.gnu.org>2003-10-08 00:39:21 +0200
commit53400b9e49e8201a22b81376a960eb7ea8cedf92 (patch)
tree09a503f07c5d05362b32108f16dc1e04f9dce629 /gcc/cp/pt.c
parent3ed961a056fa188b2a709183fa66c91a558589b2 (diff)
downloadgcc-53400b9e49e8201a22b81376a960eb7ea8cedf92.zip
gcc-53400b9e49e8201a22b81376a960eb7ea8cedf92.tar.gz
gcc-53400b9e49e8201a22b81376a960eb7ea8cedf92.tar.bz2
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
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index aad6c60..f0dc0e1 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;