Polymorphic variables in namelists: Invalid?
nncarlson opened this issue · comments
Neil Carlson commented
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.