From: Gib Bogle on 8 May 2010 06:21 ivan martin wrote: > > No, the first warning message was: > C:\fortran_snippets\string_con.f90(1) : Warning: In the call to MY_SUBROUTINE, actual argument #3 > does not match the type and kind of the corresponding dummy argument. > call my_subroutine('string constant',number1) It's not a good idea to ignore compiler warnings, as you can see.
From: dpb on 8 May 2010 08:37
robin wrote: .... > There is a mismatch also in the second argument, which is INTEGER, > passed to a REAL. .... We didn't know that at the time; it could have been declared as REAL in the calling routine as well... -- |