decl.c (duplicate_decls): Copy DECL_TEMPLATE_INSTANTIATED when merging decls.
authorMark Mitchell <mark@markmitchell.com>
Fri, 26 Feb 1999 12:11:43 +0000 (12:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 26 Feb 1999 12:11:43 +0000 (12:11 +0000)
commit2b0a63a35b58c529363c6ed6db01f26d9cfa737f
tree88245a986d08f50e02468d5be72d94987f8133ca
parented70c42623729d86d2dc610a5279a5f394be68ee
decl.c (duplicate_decls): Copy DECL_TEMPLATE_INSTANTIATED when merging decls.

* decl.c (duplicate_decls): Copy DECL_TEMPLATE_INSTANTIATED when
merging decls.
* pt.c (regenerate_decl_from_template): Tweak for clarity.
(instantiate_decl): Mark a decl instantiated before regenerating
it to avoid recursion.
* tree.c (mapcar): Don't call decl_constant_value unless we know
something is TREE_READONLY_DECL_P.

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