This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34260] present returns wrong value of optional variables
- From: "terry at chem dot gu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2007 10:33:02 -0000
- Subject: [Bug fortran/34260] present returns wrong value of optional variables
- References: <bug-34260-13252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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