public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96255] New: [F2018] Implement option type spec for index DO CONCURRENT
@ 2020-07-21  0:47 jvdelisle at charter dot net
  2020-07-21  4:24 ` [Bug fortran/96255] [F2018] Implement optional type spec for index in " kargl at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jvdelisle at charter dot net @ 2020-07-21  0:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96255
           Summary: [F2018] Implement option type spec for index DO
                    CONCURRENT
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at charter dot net
  Target Milestone: ---

F2018 provides for an optional type spec in the DO CONCURRENT construct:

R1125 concurrent-header is ( [ integer-type-spec :: ] concurrent-control-list [
, scalar-mask-expr ] )

There is a constraint that it must be of type integer. This construct allows it
to be declared locally to its block.

program looper
   implicit none

   !integer i

   do concurrent (integer :: i=1:10)
     print *, i
   end do

end program looper

$ gfc -c looper.f03 
looper.f03:6:19:

    6 |    do concurrent (integer :: i=1:10)
      |                   1
Error: Syntax error in DO statement at (1)
looper.f03:8:6:

    8 |    end do
      |      1
Error: Expecting END PROGRAM statement at (1)
looper.f03:7:15:

    7 |      print *, i
      |               1
Error: Symbol ‘i’ at (1) has no IMPLICIT type

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

end of thread, other threads:[~2023-02-03  7:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  0:47 [Bug fortran/96255] New: [F2018] Implement option type spec for index DO CONCURRENT jvdelisle at charter dot net
2020-07-21  4:24 ` [Bug fortran/96255] [F2018] Implement optional type spec for index in " kargl at gcc dot gnu.org
2020-07-21  5:53 ` kargl at gcc dot gnu.org
2020-07-21  5:57 ` kargl at gcc dot gnu.org
2020-07-21 14:34 ` dominiq at lps dot ens.fr
2020-07-21 19:41 ` jvdelisle at charter dot net
2020-07-21 19:44 ` jvdelisle at charter dot net
2020-07-21 20:25 ` sgk at troutmask dot apl.washington.edu
2020-07-22  6:29 ` kargl at gcc dot gnu.org
2020-07-22 18:25 ` kargl at gcc dot gnu.org
2021-11-11 21:01 ` anlauf at gcc dot gnu.org
2023-02-02 20:11 ` Boyce at engineer dot com
2023-02-03  7:25 ` kargl 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).