https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77418
Bug ID: 77418
Summary: SELECT TYPE associating entity can be (de)allocated
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: pault at gcc dot gnu.org
Target Milestone: ---
Spotted by Steve Lionel, Intel.
As committed this morning, dtio_5.f90 contains a standard defying deallocation
at line 153.
deallocate(top)
To quote Steve:
"SELECT TYPE, an associating entity does not have the POINTER or ALLOCATABLE
attribute even if its selector does. See 8.1.3.3 - this is more clearly stated
in 16-007r1 (same section)."
Currently, gfortran permits both allocation and deallocation of the associating
entity 'top'.
I will correct the testcase to make it conform to the standard.
Paul