mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 12:45:06 +08:00
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:
parent
80d8905ca6
commit
6f4234e9d7
@ -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
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user