public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34763]  New: bare END not allowed in an interface block in a module procedure
@ 2008-01-12 21:24 dick dot hendrickson at gmail dot com
  2008-01-12 22:04 ` [Bug fortran/34763] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2008-01-12 21:24 UTC (permalink / raw)
  To: gcc-bugs

With gfortran 4.3.0 20080109 I get the error message

n_interface.f:7.12:

            END
           1
Error: END SUBROUTINE statement expected at (1)

with the following program
      module n
      contains
      subroutine n_interface
      INTERFACE
            SUBROUTINE NGSXDY(TLS1,TLS2)
            REAL  ::  TLS1,TLS2
            END                 
      END INTERFACE
      end
      end module

If the n_interface is an external procedure it works fine.  A bare
END statement is allowed in interface blocks.  I'd guess you
are misapplying the constraint after R1224 to things inside of
interface blocks.  But NGSXDY isn't a module subroutine.  You'll
probably need a similar fix for functions in interface blocks,
although I haven't tried that.

Dick Hendrickson


-- 
           Summary: bare END not allowed in an interface block in a module
                    procedure
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34763


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

end of thread, other threads:[~2008-01-13 21:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12 21:24 [Bug fortran/34763] New: bare END not allowed in an interface block in a module procedure dick dot hendrickson at gmail dot com
2008-01-12 22:04 ` [Bug fortran/34763] " burnus at gcc dot gnu dot org
2008-01-12 22:46 ` burnus at gcc dot gnu dot org
2008-01-13 18:00 ` burnus at gcc dot gnu dot org
2008-01-13 21:50 ` burnus at gcc dot gnu dot org
2008-01-13 22:15 ` burnus at gcc dot gnu dot 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).