re PR c++/11097 (using template operator is broken)
authorGiovanni Bajo <giovannibajo@libero.it>
Tue, 7 Oct 2003 22:39:21 +0000 (00:39 +0200)
committerBernardo Innocenti <bernie@gcc.gnu.org>
Tue, 7 Oct 2003 22:39:21 +0000 (00:39 +0200)
PR c++/11097
* pt.c (tsubst_decl): Substitute also the DECL_NAME node of
USING_DECL.

From-SVN: r72208

gcc/cp/ChangeLog
gcc/cp/pt.c

index 3cbb85c7dbd633c70bc74e2e82a1c8028b00bb57..80cc65e61fb2df9790053536136e535519f0ee20 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-06  Giovanni Bajo <giovannibajo@libero.it>
+
+       PR c++/11097
+       * pt.c (tsubst_decl): Substitute also the DECL_NAME node of
+       USING_DECL.
+
 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/10147
index aad6c6038ffa2fd48ded832f1e75e8658c34a278..f0dc0e133681d555c0260373c49eddb9c9a3f813 100644 (file)
@@ -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;