aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobert Lipe <robertl@gcc.gnu.org>1998-05-28 23:06:53 +0000
committerRobert Lipe <robertl@gcc.gnu.org>1998-05-28 23:06:53 +0000
commit7326d37741efc6cedb135129ab87a544366b2fd1 (patch)
tree46a8c30132800f66a396308df548f5a1348e2b6a /gcc
parent75a50bd193324ae44f1c6a72c100ad2903c5861b (diff)
downloadgcc-7326d37741efc6cedb135129ab87a544366b2fd1.zip
gcc-7326d37741efc6cedb135129ab87a544366b2fd1.tar.gz
gcc-7326d37741efc6cedb135129ab87a544366b2fd1.tar.bz2
g++ now recognizes the error.
From-SVN: r20127
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb67.C15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C
index f73ece9..4b66c11 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C
@@ -1,15 +1,6 @@
// Build don't link:
/*
-The 971114 "gcc/cp/parse.y" doesn't properly identify non-aggregate
-types used as base classes.
-
-First, the rule:
-
- base_class: base_class_access_list see_typename base_class.1
-
-uses "IS_AGGR_TYPE" instead of "is_aggr_type" to check "base_class.1",
-so no error is reported for code like:
-
+Check whether a typedef for a basic type as a baseclass is diagnosed.
*/
- typedef int an_int;
- class bar : public an_int {};
+typedef int an_int;
+class bar : public an_int {}; // ERROR -