cp-tree.h (DECL_TEMPLATE_INSTANTIATED): New macro.
authorMark Mitchell <mark@markmitchell.com>
Mon, 16 Nov 1998 08:34:38 +0000 (08:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 16 Nov 1998 08:34:38 +0000 (08:34 +0000)
commitfbf1c34bfa83a4b08f9ee8651250cd989d0bd0ba
tree4e2640645217b40b287d5f8c413c905bb4a702c8
parent848b92e1cc58303988dadd22623b904697084092
cp-tree.h (DECL_TEMPLATE_INSTANTIATED): New macro.

* cp-tree.h (DECL_TEMPLATE_INSTANTIATED): New macro.
* decl.c (duplicate_decls): Remove special-case code to deal with
template friends, and just do the obvious thing.
* pt.c (register_specialization): Tweak for clarity, and also to
clear DECL_INITIAL for an instantiation before it is merged with a
specialization.
(check_explicit_specialization): Fix indentation.
(tsubst_friend_function): Handle both definitions in friend
declaration and outside friend declarations.
(tsubst_decl): Don't clear DECL_INITIAL for an instantiation.
(regenerate_decl_from_template): Tweak accordingly.
(instantiate_decl): Likewise.

From-SVN: r23674
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/friend36.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/ttp53.C