]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
decl.c (duplicate_decls): Always merge the old and new patterns for templates...
authorMark Mitchell <mark@markmitchell.com>
Thu, 20 Aug 1998 13:46:53 +0000 (13:46 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 20 Aug 1998 13:46:53 +0000 (13:46 +0000)
commit4d85e00e38bd7c6775904c004499d808aa7a3ee1
tree0e96b25738fc8d44f5034c0ec7390633c1d566da
parent293bcdc970c9509e8079c4ee96efc1c693be2d9d
decl.c (duplicate_decls): Always merge the old and new patterns for templates...

* decl.c (duplicate_decls): Always merge the old and new patterns
for templates, regardless of whether or not the new one has
DECL_INITIAL.  Don't throw away specializations.  Merge
DECL_SAVED_TREE.
* pt.c (tsubst_decl): Use the right pattern when calculating the
complete args for a new template instance.
(do_decl_instantiation): Fix typo in comment.
(regenerate_decl_from_template): Deal with tricky friend template
case.
(instantiate_decl): Likewise.

From-SVN: r21876
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/friend30.C [new file with mode: 0644]