This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27546] [F2003] IMPORT not implemented
- 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: 7 Nov 2006 16:36:06 -0000
- Subject: [Bug fortran/27546] [F2003] IMPORT not implemented
- References: <bug-27546-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2006-11-07 16:36 -------
Syntax:
IMPORT [[ :: ] import-name-list]
May only appear in the interface body, i.e.
interface
import
is wrong, but
interface
subroutine foo
import
is ok.
(It would be nice if one could give a good error message for the first case -
as for the case that one puts it outside an interface block.)
Current check is in decl.c:1216.
One needs to reject also
interface
type bar
end type bar
subroutine
import bar
if bar does not exists in the host scoping unit.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27546