pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION before calling comp_template_args.

* pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION
	before calling comp_template_args.

From-SVN: r86327
This commit is contained in:
Kriang Lerdsuwanakij 2004-08-20 15:42:29 +00:00 committed by Kriang Lerdsuwanakij
parent 80d8905ca6
commit 6f4234e9d7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-08-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION
before calling comp_template_args.
2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
* class.c (build_vtbl_initializer): Use build_int_cst for

View File

@ -1079,8 +1079,8 @@ register_specialization (tree spec, tree tmpl, tree args)
more convenient to simply allow this than to try to prevent it. */
if (fn == spec)
return spec;
else if (comp_template_args (TREE_PURPOSE (s), args)
&& DECL_TEMPLATE_SPECIALIZATION (spec))
else if (DECL_TEMPLATE_SPECIALIZATION (spec)
&& comp_template_args (TREE_PURPOSE (s), args))
{
if (DECL_TEMPLATE_INSTANTIATION (fn))
{