[Fortran, Patch] Implement IMPLICIT NONE

Tobias Burnus burnus@net-b.de
Wed Oct 1 22:32:00 GMT 2014


I don't want to implement Fortran 90's implicit none, which is of course 
already supported. However, I would like to implement as vendor extension:

   IMPLICIT NONE (external)

which forces at that least an "external" or "procedure" is used or an 
explicit interface available, if one tries to invoke a procedure. 
Background for the change is my recent bug:
    internal co_broadcast
    call co_broadcasr(...)

While I have implemented is as vendor extension (-std=gnu), of course, 
the syntax doesn't come out of the blue but is in the current Fortran 
2015 draft (14-007r2):

R563 implicit-stmt  is  IMPLICIT implicit-spec-list
                     or  IMPLICIT NONE [ ( [ implicit-none-spec-list ] ) ]
R566 implicit-none-spec  is  EXTERNAL
                          or  TYPE


Build and regtested on x86-64-gnu-linux.
OK for the trunk?

Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit_none.diff
Type: text/x-patch
Size: 9500 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20141001/e342c038/attachment.bin>


More information about the Fortran mailing list