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;