OSDN Git Service

PR c++/29022
authorlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2006 15:19:39 +0000 (15:19 +0000)
committerlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2006 15:19:39 +0000 (15:19 +0000)
commit1a9b4c25c61b2f6fa52c4944055003f6fba889fc
tree8dfe031c7bde6e8643739d129b93e39020aca30e
parentfda0d99d05eef01f2341b708de13a2e0bce433a8
PR c++/29022
* parser.c (cp_parser_class_head): Move processing
of any base classes to...
(cp_parser_class_specifier) ...here. Take an extra
tree* parameter for any base classes. Only process
them if the opening brace was found.

* g++.dg/inherit/virtual2.C: New test.
* g++.dg/inherit/virtual3.C: Likewise.
* g++.old-deja/g++.bugs/900121_05.C: Adjust error markers.
* g++.dg/inherit/error2.C: Likewise.
* g++.dg/template/instantiate1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119318 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/error2.C
gcc/testsuite/g++.dg/inherit/virtual2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/virtual3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/instantiate1.C
gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C