This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
eb67.C
- To: egcs-patches at cygnus dot com
- Subject: eb67.C
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 29 May 1998 00:35:24 +0200
g++ now recognizes the error.
Martin
Index: eb67.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb67.C
*** eb67.C 1998/05/27 23:00:36 1.1
--- eb67.C 1998/05/28 22:27:13
***************
*** 1,15 ****
// 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:
!
*/
! typedef int an_int;
! class bar : public an_int {};
--- 1,6 ----
// Build don't link:
/*
! Check whether a typedef for a basic type as a baseclass is diagnosed.
*/
! typedef int an_int;
! class bar : public an_int {}; // ERROR -