https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94170
Bug ID: 94170 Summary: gfortran segfault on object oriented code Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: r.dilz at tue dot nl Target Milestone: --- Created attachment 48030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48030&action=edit The part of the code that crashes the gfortran I have some code that doesn't work on some gfortran compilers. gfortran-4.8 Works ifort (15.0.0) Works gfortran-5 segfaults gfortran-7 segfaults gfortan-9 (9.2.1) segfaults Since I am new to object oriented fortran, I am not completely sure whether my code is correct. But since it works on some compilers, I suspect it is correct. The code is simply built with: gfortran -c crashgfortran.f90 (see attachment) The goal of the code is to recursively build arrays of classes.