[Bug c++/10930] g++-3.3 should warn about class/struct equivalence

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 27 14:42:00 GMT 2003


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.



More information about the Gcc-bugs mailing list