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