https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114815
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to anlauf from comment #2) > The code in comment#0 is invalid. > > Intel: > > pr114815.f90(5): error #8737: For a default initialized component every type > parameter and array bound must be a constant expression. [GENDERS] > end type Student_Group > ^ > > NAG: > > Error: pr114815.f90, line 4: Type STUDENT_GROUP default-initialised > component GENDERS has a non-constant array bound > Errors in declarations, no further processing for LAB_1_4 > > > When commenting the default initialization, the code compiles with gfortran. My first project once 14-branch is released will be to put PDTs to rights. Unfortunately, the representation is plain wrong and I don't see any point in cosmetic fixes until that is put right. Sorry Paul