]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/17542 (Visibility attribute ignored when it precedes class head)
authorMatt Austern <austern@apple.com>
Sat, 30 Oct 2004 21:17:31 +0000 (21:17 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Sat, 30 Oct 2004 21:17:31 +0000 (21:17 +0000)
commit3cabd8f9f1f3b1cf8c1f87fdd104ae574ccfd3c2
tree5c32262faccda1730bfd2d0aea22d1bc725fd315
parent46bfe5e30e858fe285762859370a6a90bd1c18ba
re PR c++/17542 (Visibility attribute ignored when it precedes class head)

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.

From-SVN: r89898
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib18.C [new file with mode: 0644]