This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2006 17:05:38 -0000
- Subject: [Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
- References: <bug-28056-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-08-25 17:05 -------
Subject: Bug 28056
Author: mmitchel
Date: Fri Aug 25 17:05:30 2006
New Revision: 116412
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116412
Log:
PR c++/28056
* decl.c (grokdeclarator): Disallow declarations with qualified
names in local scopes.
PR c++/28056
* g++.dg/parse/local1.C: New test.
* g++.dg/other/qual1.C: Tweak error marker.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/local1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/qual1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056