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]
Other format: [Raw text]

Re: [Patch, fortran-dev] PR 42274: [fortran-dev Regression] ICE: segmentation fault


Dear Janus,

> The final regressions, i.e. dynamic_dispatch_{1-3}.f03, were resolved
> by this hunk:
>
> - ? ? ?if (!(cmp->tb && cmp->tb->u.specific && cmp->tb->u.specific->n.sym))
> + ? ? ?if (cmp->tb && cmp->tb->u.specific && cmp->tb->u.specific->n.sym)
> + ? ? ? target = cmp->tb->u.specific->n.sym;
> + ? ? ?else
> + ? ? ? {
> + ? ? ? ? gfc_symtree *st;
> + ? ? ? ? st = gfc_find_typebound_proc (dt, NULL, cmp->name, false, NULL);
> + ? ? ? ? if (st->n.tb && st->n.tb->u.specific)
> + ? ? ? ? ? target = st->n.tb->u.specific->n.sym;
> + ? ? ? }
> +
> + ? ? ?if (!target)
> ? ? ? ?continue;


Ahhhh, yes! Hence the failures in correctly picking up the 'methods'
for extensions.

OK for fortran-dev.

Many thanks for the patch

Paul

PS My patch was not screwed up but I had screwed up - I regtested
without your patch applied .... *** blush ****


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