https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82843
Bug ID: 82843 Summary: (PDT) Constructors with PDT components do not work. Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pault at gcc dot gnu.org Target Milestone: --- And another one to try once the earlier cases are resolved: Another goodie from https://groups.google.com/forum/#!topic/comp.lang.fortran/NDE6JKTFbNU --- begin case --- type :: t(ell) integer, len :: ell end type type :: u type(t(ell=:)), allocatable :: x end type type(t(ell=:)), allocatable :: foo type(u) :: bar allocate( t(ell=1) :: foo ) bar = u( x=foo ) end --- end case --- gfortran.exe -c p.f90 -o p.o p.f90:14:14: bar = u( x=foo ) 1 Error: Can't convert TYPE(Pdtt) to TYPE(t) at (1) Not only is the constructor failing to compile, but I need to be turning the PDT name back into the original for the error message.