This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33659] New: g++ permits duplicate class names in definition
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 17:24:02 -0000
- Subject: [Bug c++/33659] New: g++ permits duplicate class names in definition
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This C++ program is accepted without error or warning by gcc 4.2 and mainline:
class c { void f(); };
void c::c::c::c::f() { }
Is that really valid?
--
Summary: g++ permits duplicate class names in definition
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33659