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