https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94386
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2020-03-29
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The error is here:
Program received signal SIGSEGV, Segmentation fault.
match_data_constant (result=0x7fffffffd628) at ../../gcc/gcc/fortran/decl.c:426
426 if ((*result)->symtree->n.sym->attr.save
(gdb) l
421 attribute. ... If data-stmt-constant is initial-data-target
422 the corresponding data statement object shall be
423 data-pointer-initialization compatible (7.5.4.6) with the
initial
424 data target; the data statement object is initially associated
425 with the target. */
426 if ((*result)->symtree->n.sym->attr.save
427 && (*result)->symtree->n.sym->attr.target)
428 return m;
429 gfc_free_expr (*result);
430 }
(gdb) p (*result)->symtree
$1 = (gfc_symtree *) 0x0
(gdb) call debug(*result)
(/ /) (INTEGER 4)