https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114815
kargls at comcast dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargls at comcast dot net --- Comment #1 from kargls at comcast dot net --- (In reply to Dmitrii from comment #0) > The following code lets gfortran crash: > > program lab_1_4 > type Student_Group(Size) > integer, len :: Size > character :: Genders(Size) = "" > end type Student_Group > > type(Student_Group(22)) :: Group > end program lab_1_4 > > I have this crash on both my systems: > - GNU Fortran 12.2.0 on Debian 12 (bookworm) 6.1.0.-17-amd64 (virtual > machine) > - GNU Fortran 13.2.0 on MacOS on Apple M1 Sonoma 14.4.1 (Homebrew GCC 13.2.0) > > When I compile file with provided code, it consistently results in a > segmentation fault. It doesn’t matter what compilation flags I set, it > reproduced always. Parameterized derived types (PDT) are known to have issues. It is best to avoid their use with gfortran if you can. This is likely a duplicate PR, but I no longer have the ability to edit PR metadata. :(