summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-25 12:51:39 +0000
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-25 12:51:39 +0000
commit7e35473ef7ea25dfcdbfa5372161ae15e4a17bc8 (patch)
treeeeb88d8904352bcbcb7ee3020991aae5e30f5096 /gcc/testsuite/g++.old-deja
parent7113237bf329e1245f096787093aed051ea2dd23 (diff)
downloadgcc-7e35473ef7ea25dfcdbfa5372161ae15e4a17bc8.tar.gz
PR c++/5655
* parser.c (cp_parser_check_access_in_redeclaration): New function. (cp_parser_member_declaration): Use it. (cp_parser_template_declaration_after_export): Likewise. * g++.dg/parse/access7.C: New test. * g++.old-deja/g++.brendan/crash56.C: Fix redeclaration error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71771 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash56.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
index 133c9b9ff28..243a2b620fe 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
@@ -5,6 +5,8 @@
const bool FALSE = 0;
const bool TRUE = 1;
class ListDProto {
+protected:
+ class link;
public:
ListDProto();
ListDProto(const ListDProto&);
@@ -15,7 +17,6 @@ public:
void clear();
void remove_head();
void remove_tail();
- class link;
class Vix {
public:
Vix();