From c29c4e238eec39652ffbcece7250746f3b3de66c Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 10 Feb 1998 23:58:19 +0000 Subject: [PATCH] * pt.c (convert_nontype_argument): Fix typo. From-SVN: r17838 --- gcc/cp/ChangeLog | 5 +++-- gcc/cp/pt.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1e3970ce0a7..fa705cbf50b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,6 +1,7 @@ -Tue Feb 10 23:41:57 1998 Jason Merrill +Tue Feb 10 23:56:46 1998 Jason Merrill - * 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 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b4ee69e734d..7f019f75fdd 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;