https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78152

--- Comment #10 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
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.

Reply via email to