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/34260] present returns wrong value of optional variables



------- Comment #1 from terry at chem dot gu dot se  2007-11-28 10:33 -------
> gfortran behaves correctly with an explicit INTERFACE, but that
> should not be required (as far as I know)

Explicit interfaces are required for procedures with optional arguments.  SUB
is still external to MAIN, so is defined implicitly in MAIN.  As far as I can
see it's not legal.  I don't know what ifort's doing.

Shouldn't this error be detected by the compiler at some stage of the
compilation?  Or rather: Having the compiler detect this and raise an error
would be a nice feature.


-- 

terry at chem dot gu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |terry at chem dot gu dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34260


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