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
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jan 2009 04:18:28 -0000
- Subject: [Bug c++/33677] Member with same name as class
- References: <bug-33677-10812@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2009-01-01 04:18 -------
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;
The way I read is that foo cannot be the name of the data member of class foo.
Hmm, maybe there was a defect report about this ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33677