https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78640
Jürgen Reuter <juergen.reuter at desy dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.reuter at desy dot de --- Comment #4 from Jürgen Reuter <juergen.reuter at desy dot de> --- In the meanwhile (F2018) this is C1584, and it says: "The function result of a pure function shall not be both polymorphic and allocatable, or have a polymorphic allocatable ultimate component." So this is still not allowed. Funnily, also ifort does not veto this code, nagfor however does: Error: pr78640.f90, line 9: Result variable of pure function F is polymorphic allocatable