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

bangerth@dealii.org gcc-bugzilla@gcc.gnu.org
Fri May 23 19:23: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


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan@codesourcery.com,
                   |                            |giovannibajo@libero.it


------- Additional Comments From bangerth@dealii.org  2003-05-23 19:01 -------
I tried to locate the spot in the standard that says whether
  struxt X x;
is really legal only if X is declared as a "struct", rather 
than declared as a "class". I was under the impression that
it wouldn't matter, and couldn't find wording.

If it really doesn't matter, then I think it's not gcc's
job to warn about stuff simply because other compilers are not
standards conforming. It's their task to fix it. It the
standard prescribes that "struct X x" is only allowed if
X is really a struct, then we have a bug in gcc (and in icc, FWIW).

Nathan, your opinion?

W.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list