This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10930] g++-3.3 should warn about class/struct equivalence
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2003 14:42:26 -0000
- Subject: [Bug c++/10930] g++-3.3 should warn about class/struct equivalence
- References: <20030522112343.10930.thor@math.tu-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10930
------- Additional Comments From bangerth at dealii dot org 2003-06-27 14:42 -------
I finally found (by accident) that part of the standard that explicitly
allows gcc's behavior in this case, so closing the PR is justified.
The clause in question is 7.1.5.3/3, which states that
[...] the enum keyword shall be used to refer to an
enumeration, the union class-key shall be used to refer to
a union, and either the class or struct class-key shall be
used to refer to a class declated using the class or
struct class-key.
This should settle the matter.
W.