This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29138] [4.0/4.1/4.2 Regression] access declarations don't work for classes
- 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: 3 Oct 2006 18:06:19 -0000
- Subject: [Bug c++/29138] [4.0/4.1/4.2 Regression] access declarations don't work for classes
- References: <bug-29138-10252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-10-03 18:06 -------
Subject: Bug 29138
Author: mmitchel
Date: Tue Oct 3 18:06:00 2006
New Revision: 117410
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117410
Log:
PR c++/29138
* decl2.c (grokfield): Don't handle access declarations here.
* parser.c (cp_parser_using_declaration): Handle access
declarations too.
(cp_parser_block_declaration): Adjust calls to
cp_parser_using_declaration.
(cp_parser_member_declaration): Likewise. Use
cp_parser_using_declaration to look for access_declarations.
PR c++/29138
* g++.dg/inherit/access8.C: New test.
* g++.dg/template/dtor4.C: Tweak error messages.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/access8.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl2.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/dtor4.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29138