This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

eb67.C


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 -


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]