This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34763] bare END not allowed in an interface block in a module procedure
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2008 21:23:53 -0000
- Subject: [Bug fortran/34763] bare END not allowed in an interface block in a module procedure
- References: <bug-34763-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-12 21:23 -------
Confirm. (Though you missed "subroutine" for "end subroutine n_interface" in
your example.)
The Fortran 2003 references are:
C1243 (R1230) FUNCTION shall appear in the end-function-stmt of an internal
or module function.
and
C1248 (R1234) SUBROUTINE shall appear in the end-subroutine-stmt of an
internal or module subroutine.
Seemingly, the contained_procedure() check in decl.c, called by gfc_match_end,
does not work properly.
Thanks for report.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |32834
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2008-01-12 21:23:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34763