https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80255

pedsxing at gmx dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.0.1                       |10.1.0

--- Comment #3 from pedsxing at gmx dot net ---
I just tried again with gfortran 10.1.0 and the problem is still there. (I can
not get it to print "other type" anymore though. Now it just always segfaults.)

I do believe this is standard conforming Fortran. Here is what the standard
says about intrinsic assignment to allocatable variables:
"If the variable is [...] an unallocated allocatable variable, it is then
allocated with: * if the variable is polymorphic, the same dynamic type as
expr"
I would think that unlimited polymorphic "class(*)" should count as
polymorphic.

Reply via email to