re PR c++/29138 (access declarations don't work for classes)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 3 Oct 2006 18:39:32 +0000 (18:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 3 Oct 2006 18:39:32 +0000 (18:39 +0000)
commit547e3b2a6380d009559c2d9960334d36d9c13be9
treee39951ea5f759ad77d26ae6631f987c5aec3299a
parent981114e175b2702448171adf1448f9daacb56921
re PR c++/29138 (access declarations don't work for classes)

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.

From-SVN: r117411
gcc/cp/parser.c