This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33677] Member with same name as class is not rejected
- From: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2009 14:52:02 -0000
- Subject: [Bug c++/33677] Member with same name as class is not rejected
- References: <bug-33677-10812@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from s__nakayama at infoseek dot jp 2009-01-02 14:52 -------
> If T is the name of a class, then each of the following shall have a name
> different from T:
> - every data member of class T;
This description is the one in "ISO/IEC 14882:1998".
It was changed in "ISO/IEC 14882:2003" as follows.
> If T is the name of a class, then each of the following shall have a name
> different from T:
> - every static data member of class T;
http://www.open-std.org/jtc1/sc22/wg21/docs/core5.htm#80
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33677