This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33677] Member with same name as class



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]