g++ now recognizes the error.

From-SVN: r20127
This commit is contained in:
Robert Lipe 1998-05-28 23:06:53 +00:00
parent 75a50bd193
commit 7326d37741

View 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 -