This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/27546] [F2003] IMPORT not implemented



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]