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: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2007 13:50:14 -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 #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