mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 00:41:25 +08:00
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
This commit is contained in:
parent
3ed961a056
commit
53400b9e49
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user