public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/110033] New: rejects-valid: associate name corresponding to coarray selector should be considered a coarray
@ 2023-05-30  3:42 neil.n.carlson at gmail dot com
  2023-05-30  3:44 ` [Bug fortran/110033] " neil.n.carlson at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: neil.n.carlson at gmail dot com @ 2023-05-30  3:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110033
           Summary: rejects-valid: associate name corresponding to coarray
                    selector should be considered a coarray
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: neil.n.carlson at gmail dot com
  Target Milestone: ---

In the following example, the associate name Y corresponds to a coarray.
According to 11.1.3.3 par. 2 (f2018), Y should be regarded as a coarray,
however gfortran rejects this as invalid.

real :: x[*]
associate (y => x)
  y[1] = 1.0
end associate
end

gfortran -fcoarray=lib gfortran-20230529.f90 
gfortran-20230529.f90:18:4:

   18 |   y[1] = 1.0
      |    1
Error: Coarray designator at (1) but ‘y’ is not a coarray

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-17 16:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30  3:42 [Bug fortran/110033] New: rejects-valid: associate name corresponding to coarray selector should be considered a coarray neil.n.carlson at gmail dot com
2023-05-30  3:44 ` [Bug fortran/110033] " neil.n.carlson at gmail dot com
2023-06-02 17:57 ` kargl at gcc dot gnu.org
2023-06-02 17:57 ` kargl at gcc dot gnu.org
2023-06-17 16:54 ` pault at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).