summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-09-29 16:08:34 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-09-29 12:08:34 -0400
commit893de33c133017f9559d652f2d287ca00ea37a74 (patch)
tree665b6daaba096fcbf796f5416a03f0217b42d787 /gcc/cp/pt.c
parent9b16d2c4efea1287a1651881732e06d7478f6d54 (diff)
downloadgcc-893de33c133017f9559d652f2d287ca00ea37a74.tar.gz
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
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
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;