From 893de33c133017f9559d652f2d287ca00ea37a74 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 29 Sep 1997 16:08:34 +0000 Subject: cp-tree.h, [...]: Lose DECL_C_STATIC and DECL_PUBLIC. * cp-tree.h, decl.c, decl2.c, pt.c: Lose DECL_C_STATIC and DECL_PUBLIC. Don't pretend statics are public. * decl2.c (lang_decode_option): Add missing ;. From-SVN: r15789 --- gcc/cp/pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/pt.c') diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 7ac69c29d07..3f6a5789f92 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1115,7 +1115,7 @@ coerce_template_parms (parms, arglist, in_decl) else if (TREE_CODE (a) != VAR_DECL && TREE_CODE (a) != FUNCTION_DECL) goto bad; - else if (! DECL_PUBLIC (a)) + else if (! TREE_PUBLIC (a)) { cp_error ("address of non-extern `%E' cannot be used as template argument", a); val = error_mark_node; -- cgit v1.2.1