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