https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96041

--- Comment #8 from anlauf at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #7)
> f951`gfc_resolve_formal_arglist(proc=0x000000014301fbb0) at resolve.c:313:18
>     frame #2: 0x00000001000eb283

Setting a breakpoint here and inspecting the arguments of

313           if (strcmp (proc->name, sym->name) == 0)

one can see that sym->name can be junk after the error message was emitted.

The place where sym is determined is a couple of lines above:

290       for (f = proc->formal; f; f = f->next)
291         {
292           gfc_array_spec *as;
293
294           sym = f->sym;

Either proc got corrupted or has not been set up properly.

On my x86_64 system I have:

(gdb) p *proc->formal->sym->name
$23 = 0 '\000'

Reply via email to