------- Comment #5 from danp57 at optonline dot net 2007-07-04 04:16 ------- Subject: Re: dummy procedure problem
Inserting "implicit none" in the headings of all the functions/program bodies made it clear that the main program did not know what type it was passing. Explicit insertion of "real(8), external::" declarations in the main program was enough to solve the problem. The "external" was required. Both niceties had escaped my prior reading of fortran95... I'd had the impression it would pick these up from the declarations above. Nope. However, it might be helpful if it noted the problem as does the Lahey compiler, or didn't crash so hard. I appreciate your assistance! Thank you! Dan jvdelisle at gcc dot gnu dot org wrote: > ------- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-07-04 04:05 > ------- > and lahey says: > > 2623-S: "SOURCE.F90", line 25: The actual argument shall be a procedure name > that associates the dummy argument 'f' of procedure 'wrap'. The previous > appearance is in 'line 1'. > 2617-S: "SOURCE.F90", line 25: The type of function 'wrap' result shall be > the same between definition and reference. The previous appearance is in 'line > 1'. > Encountered 2 errors, 0 warnings, 0 informations in file SOURCE.F90. > > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32620