OSDN Git Service

PR c++/29138
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 18:04:10 +0000 (18:04 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 18:04:10 +0000 (18:04 +0000)
commitda2a327105cd5bff4d2d64f84697aa883c55a2b4
tree5af52248c32ff0f2af23a82d7887c3bb88baede1
parentbc2c48ea314288860e17684d117a103d3b372693
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117409 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/access8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/dtor4.C