This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fix latent bug in c++ frontend
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 22:03:22 +0100
- Subject: Re: Fix latent bug in c++ frontend
- References: <20030116181745.GA17380@artax.karlin.mff.cuni.cz>
> 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));
>