Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

class(*) allocatable does not compile

styc
Beginner
416 Views

Test case attached. pgfortran 12.2 compiles without problems.

0 Kudos
1 Reply
Neil_Carlson
Beginner
416 Views

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."

0 Kudos
Reply