https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
--- Comment #6 from John Haiducek ---
I encountered what appears to be the same bug under slightly different
conditions; I've attached the corresponding code (see attachment named
"Additional test case"). In this code the crash occurs when final
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
John Haiducek changed:
What|Removed |Added
CC||jhaiduce at gmail dot com
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
--- Comment #3 from Kirill Chilikin ---
The derived type T3 has zero components but not zero length as it extends T1;
the test does not crash after the following changes:
diff --git a/gcc/fortran/trans.cc b/gcc/fortran/trans.cc
index 961b0b5a57
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
--- Comment #2 from Kirill Chilikin ---
Some additional information:
$ gfortran -g -o test test.f90 -fdump-tree-original
$ cat test.f90.005t.original | head -n 747 | tail -n 26
{
struct t3 zero.25;
struct array00_t3 desc.26;
struc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987
--- Comment #1 from Kirill Chilikin ---
Created attachment 55721
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55721&action=edit
Objdump of the corresponding code