public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/106035] New: F2018 allows an IMPORT statement within the BLOCK construct.
@ 2022-06-20 17:33 kargl at gcc dot gnu.org
  2022-06-21 22:45 ` [Bug fortran/106035] " kargl at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kargl at gcc dot gnu.org @ 2022-06-20 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106035
           Summary: F2018 allows an IMPORT statement within the BLOCK
                    construct.
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

% cat a.f90
program bug
   implicit none
   integer i
   i = 42
   block
      import none  ! <-- This is valid Fortran 2018
      integer j
      j = 12
      print *, j
   end block
   print *, i
end program bug

% gfortran -c a.f90
a.f90:6:13:

    6 |       import none
      |             1
Error: IMPORT statement at (1) only permitted in an INTERFACE body

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

end of thread, other threads:[~2024-05-22 17:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 17:33 [Bug fortran/106035] New: F2018 allows an IMPORT statement within the BLOCK construct kargl at gcc dot gnu.org
2022-06-21 22:45 ` [Bug fortran/106035] " kargl at gcc dot gnu.org
2022-06-21 22:58 ` kargl at gcc dot gnu.org
2023-06-02 15:20 ` kargl at gcc dot gnu.org
2023-06-02 15:24 ` kargl at gcc dot gnu.org
2023-06-02 17:51 ` jdelia@santafe-conicet.gov.ar
2023-06-02 18:16 ` sgk at troutmask dot apl.washington.edu
2024-05-22 17:18 ` kargls at comcast dot net

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).