Commit 6f4234e9 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION before…

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
parent 80d8905c
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
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment