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 #2 from s__nakayama at infoseek dot jp  2007-10-11 13:50 -------
(In reply to comment #1)
> This code is invalid, and we should reject both of them.

Why do you think that this is invalid?
Member with same name as class have restrictions(ISO/IEC 14882:2003 9.2
p13/13a).
But, I can not find the restriction that this is invalid.


-- 


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]