summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-20 15:42:29 +0000
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-20 15:42:29 +0000
commit2c79776488ce4938e216c2e39e49c0abe7e3a1e4 (patch)
treec1b490e140d74c76a1ba622c46e65ca7d912bc8c /gcc
parent9620285eb5a1a3a19c3768a6c72dd5050a8ffccb (diff)
downloadppe42-gcc-2c79776488ce4938e216c2e39e49c0abe7e3a1e4.tar.gz
ppe42-gcc-2c79776488ce4938e216c2e39e49c0abe7e3a1e4.zip
* pt.c (register_specialization): Check DECL_TEMPLATE_SPECIALIZATION
before calling comp_template_args. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 372c27e0416..9897a9f4d0d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 34ea3a6a534..dd88b987fef 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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))
{
OpenPOWER on IntegriCloud