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]

Re: eb67.C


The last one in this little burst.   If this list hadn't been specifically
dedicated to "patches" I wouldn't have individually acked each one, but I
felt it was important that a glance through the threaded discussions quickly
showed the current disposition of each patch. 

Martin von Loewis wrote:
> g++ now recognizes the error.

I've applied this patch.

Thanx for all the help.

RJL


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

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com
              (WEB ADDRESS MAY BE TEMPORARILY UNAVAILABLE)




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