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

Reply via email to