------- Comment #4 from burnus at gcc dot gnu dot org 2008-07-27 17:13 ------- > Withe following patch the ICE is changed to > pr35971_red.f90:33.25: > gp = get_funloc(make_mess,aux) > 1 > Error: Type/rank mismatch in argument 'x' at (1) > - sym->as = gfc_copy_array_spec (ifc->as); > + /* sym->as = gfc_copy_array_spec (ifc->as); */
The patch is wrong. Before there were two bugs - the one fixed by the adding the sym->as line and the wrong memory access. Fixing the first bug, which solved one program (see test suite), now reveals the next problem. I think that was already tracked in one of the bind(C) PRs. Unfortunately, there are now so many that I lost track. In any case is PR 36322 about the same c.l.f. test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36463