mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 20:34:54 +08:00
g++ now recognizes the error.
From-SVN: r20127
This commit is contained in:
parent
75a50bd193
commit
7326d37741
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user