aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-02-10 23:58:19 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-02-10 18:58:19 -0500
commitc29c4e238eec39652ffbcece7250746f3b3de66c (patch)
treed1c045972a16d57738362dc4e8632a3e80a5fbe8
parent3ab1919cc2d71f372920892e539200ded0198537 (diff)
downloadgcc-c29c4e238eec39652ffbcece7250746f3b3de66c.zip
gcc-c29c4e238eec39652ffbcece7250746f3b3de66c.tar.gz
gcc-c29c4e238eec39652ffbcece7250746f3b3de66c.tar.bz2
* pt.c (convert_nontype_argument): Fix typo.
From-SVN: r17838
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 1e3970c..fa705cb 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,6 +1,7 @@
-Tue Feb 10 23:41:57 1998 Jason Merrill <jason@yorick.cygnus.com>
+Tue Feb 10 23:56:46 1998 Jason Merrill <jason@yorick.cygnus.com>
- * pt.c (check_explicit_specialization): Allow old-style specialization
+ * pt.c (convert_nontype_argument): Fix typo.
+ (check_explicit_specialization): Allow old-style specialization
of class template members.
Tue Feb 10 20:36:52 1998 Jason Merrill <jason@yorick.cygnus.com>
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index b4ee69e..7f019f7 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -1491,7 +1491,7 @@ convert_nontype_argument (type, expr)
return error_mark_node;
}
}
- else if (TREE_CODE (expr_type) == VAR_DECL)
+ else if (TREE_CODE (expr) == VAR_DECL)
{
if (!TREE_PUBLIC (expr))
goto bad_argument;