This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33677] New: 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: 6 Oct 2007 13:39:58 -0000
- Subject: [Bug c++/33677] New: Member with same name as class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC accept test1.cc. But GCC reject test2.cc.
IMHO, this code is valid.
test1.cc:
struct foo
{
~foo(){}
int foo;
};
test2.cc:
struct foo
{
int foo;
~foo(){}
};
--
Summary: Member with same name as class
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: s__nakayama at infoseek dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33677