aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2004-10-30 21:17:31 +0000
committerMatt Austern <austern@apple.com>2004-10-30 21:17:31 +0000
commita3128daf63a98344e4b972d68452de8457b4ec46 (patch)
tree5c32262faccda1730bfd2d0aea22d1bc725fd315 /gcc/cp/cp-tree.h
parentce0314ed1b7a26adf2329d8f31bd2e6de10ae711 (diff)
PR c++/17542
* cp-tree.h (class_key_or_enum_as_string): Declare. * error.c (class_key_or_enum): Rename to class_key_or_enum_as_string and remove static qualifier. * decl.c (shadow_tag): Warn about ignored attributes in class/struct/ union/enum declaration. * g++.dg/ext/attrib18.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@89898 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 580a73b4db8..307809fabdc 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3823,6 +3823,7 @@ extern const char *expr_as_string (tree, int);
extern const char *context_as_string (tree, int);
extern const char *lang_decl_name (tree, int);
extern const char *language_to_string (enum languages);
+extern const char *class_key_or_enum_as_string (tree);
extern void print_instantiation_context (void);
/* in except.c */