[Bug c++/33677] New: Member with same name as class
s__nakayama at infoseek dot jp
gcc-bugzilla@gcc.gnu.org
Sat Oct 6 13:40:00 GMT 2007
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
More information about the Gcc-bugs
mailing list