Commit 7326d377 by Robert Lipe

g++ now recognizes the error.

From-SVN: r20127
parent 75a50bd1
// 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 -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment