public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97036] New: [F2018] ELEMENTAL RECURSIVE subprogram prefix combination rejected
@ 2020-09-12 21:01 ian_harvey at bigpond dot com
  2020-09-13 21:41 ` [Bug fortran/97036] " anlauf at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ian_harvey at bigpond dot com @ 2020-09-12 21:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97036
           Summary: [F2018] ELEMENTAL RECURSIVE subprogram prefix
                    combination rejected
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ian_harvey at bigpond dot com
  Target Milestone: ---

F2018 removed the previous syntax restriction (F2008 C1245) on a subprogram
definition with both ELEMENTAL and RECURSIVE.

  MODULE m
    IMPLICIT NONE
  CONTAINS
    ELEMENTAL RECURSIVE SUBROUTINE foo
    END SUBROUTINE foo
  END MODULE m



$ gfortran --version
GNU Fortran (GCC) 11.0.0 20200905 (experimental)



$ gfortran -c 2020-09-13\ elemental-recursive.f90 -std=f2018
2020-09-13 elemental-recursive.f90:4:22:

    4 |   ELEMENTAL RECURSIVE SUBROUTINE foo
      |                      1
Error: ELEMENTAL attribute conflicts with RECURSIVE attribute at (1)
2020-09-13 elemental-recursive.f90:5:5:

    5 |   END SUBROUTINE foo
      |     1
Error: Expecting END MODULE statement at (1)

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

end of thread, other threads:[~2020-09-19 18:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 21:01 [Bug fortran/97036] New: [F2018] ELEMENTAL RECURSIVE subprogram prefix combination rejected ian_harvey at bigpond dot com
2020-09-13 21:41 ` [Bug fortran/97036] " anlauf at gcc dot gnu.org
2020-09-15 20:36 ` anlauf at gcc dot gnu.org
2020-09-19 18:47 ` cvs-commit at gcc dot gnu.org
2020-09-19 18:47 ` anlauf 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).