This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28056] New: [4.1/4.2 regression] enum accepted as scope
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 08:33:57 -0000
- Subject: [Bug c++/28056] New: [4.1/4.2 regression] enum accepted as scope
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code is accepted on mainline and 4.1 branch:
===========================
enum A {};
void foo() { A::bar(); }
===========================
Mark, this was caused by your patch for PR27665.
Would you mind havin a look?
--
Summary: [4.1/4.2 regression] enum accepted as scope
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: accepts-invalid, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056