This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Fix for bug 15181
- From: Steven Bosscher <stevenb at suse dot de>
- To: johan carlsson <dr dot johan at gmail dot com>, fortran at gcc dot gnu dot org
- Date: Fri, 29 Oct 2004 00:16:46 +0200
- Subject: Re: Fix for bug 15181
- Organization: SUSE Labs
- References: <e3e143c10410261232fddf186@mail.gmail.com>
On Tuesday 26 October 2004 21:32, johan carlsson wrote:
> The patch below (suggested by Konstantin Olchanski) fixes bug 15181
> (ICE when building code with derived type that has member that's a
> pointer to derived type). Built and tested.
>
> /Johan
>
> fusion [13:22:42] ~/gcc/gcc/fortran > cvs diff -u trans-expr.c
> Index: trans-expr.c
> ===================================================================
> RCS file: /cvsroot/gcc/gcc/gcc/fortran/trans-expr.c,v
> retrieving revision 1.30
> diff -u -r1.30 trans-expr.c
> --- trans-expr.c 4 Oct 2004 13:03:37 -0000 1.30
> +++ trans-expr.c 26 Oct 2004 19:25:56 -0000
> @@ -265,6 +265,7 @@
>
> c = ref->u.c.component;
>
> + gfc_typenode_for_spec (&c->ts);
> gcc_assert (c->backend_decl);
>
> field = c->backend_decl;
This looks really odd, shouldn't be necessary.
I'll try to figure out what other bug this patch is papering over :-/
Gr.
Steven