g++ now recognizes the error.
authorRobert Lipe <robertl@gcc.gnu.org>
Thu, 28 May 1998 23:06:53 +0000 (23:06 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Thu, 28 May 1998 23:06:53 +0000 (23:06 +0000)
From-SVN: r20127

gcc/testsuite/g++.old-deja/g++.robertl/eb67.C

index f73ece9f0164b499e84db8bba412c3caaf7d6b66..4b66c118c82b3a7b66473ae91ae816172e9a1582 100644 (file)
@@ -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 -