class(*) allocatable does not compile

class(*) allocatable does not compile

Imagen de styc

Test case attached. pgfortran 12.2 compiles without problems.

AdjuntoTamaño
Descargar test.f90346 bytes
publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de Neil Carlson

Your test case isn't legal Fortran.  It runs afoul of 12.5.2.5 par 2: "The actual argument shall be polymorphic if and only if the associated dummy argument is polymorphic, and either both the actual and dummy arguments shall be unlimited polymorphic, or the declared type of the actual argument shall be the same as the declared type of the dummy argument."

Inicie sesión para dejar un comentario.