https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78152
--- Comment #12 from kargl at gcc dot gnu.org --- (In reply to Steve Kargl from comment #10) > On Wed, Nov 02, 2016 at 03:39:58PM +0000, physiker at toast2 dot net wrote: > > > > Ifort version 17 (linux) supports coarrays as selectors in an associate > > construct: > > >ifort -o bug bug.f90 -warn all -check all -coarray > > >./bug > > >echo $? > > 0 > > >ifort -v > > ifort version 17.0 > > > > According the standard (at least under my interpretation > of the standard) it should only support coarray as a > selector under very limited conditions. I have been in > contact with a member of J3 and sent him an interpretation > request. Your code should compile because entities in a > main program implicitly have the SAVE attribute. Changing > your code to a subroutine removes the implicit SAVE. In > that case, none of the conditions in F2008 C526 are met, > and ifort is required to issue an error. I have been informed that J3 will not prepare another corrigendum for Fortran 2008. J3 concluded that this issue is a defect in Fortran 2008 and have prepared a correction for Fortran 2015.