This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Fix latent bug in c++ frontend


> Bootstrapped mainline i386 (athlon), running regtests now.

Regtested with no new nor fixed regressions.

Josef

> 2003-01-16  Josef Zlomek  <zlomekj@suse.cz>
> 
> 	* decl2.c (arg_assoc): If code of tree is NEW_EXPR assoc type
> 	of the first parameter.
> 
> *** gcc-main.bug/gcc/cp/decl2.c	2003-01-16 09:03:26.000000000 +0100
> --- gcc-main.fix/gcc/cp/decl2.c	2003-01-16 17:18:11.000000000 +0100
> *************** arg_assoc (struct arg_lookup *k, tree n)
> *** 4037,4042 ****
> --- 4037,4045 ----
>     if (TYPE_P (n))
>       return arg_assoc_type (k, n);
>   
> +   if (TREE_CODE (n) == NEW_EXPR)
> +     return arg_assoc_type (k, TREE_OPERAND (n, 1));
> +   
>     if (! type_unknown_p (n))
>       return arg_assoc_type (k, TREE_TYPE (n));
>   


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