This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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 for bug 15181


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



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