nncarlson / gfortran.dg

The GFortran testsuite rigged for testing other Fortran compilers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polymorphic variables in namelists: Invalid?

nncarlson opened this issue · comments

The tests dtio_27.f90 and dtio_30.f90 define namelists that include polymorphic variables; for example,

    class(t), allocatable :: y
    namelist /n2/ y

The NAG compiler rejects this as invalid:

Error: dtio_27.f90, line 63: Variable Y in NAMELIST/N2/ is polymorphic

Is NAG correct? I can't find anything in the 2008 draft standard document that prohibits this.