------- Additional Comments From Thomas dot Koenig at online dot de 2004-11-17 09:18 ------- (In reply to comment #3)
I checked this with gcc-4.0-20041107 on a ia64, and the problem didn't occur: $ gfortran -v Reading specs from /home/zfkts/lib/gcc/ia64-unknown-linux-gnu/4.0.0/specs Configured with: ../gcc-4.0-20041107/configure --prefix=/home/zfkts --enable-languages=c,c++,f95 Thread model: posix gcc version 4.0.0 20041107 (experimental) $ gfortran -O test1.f funct2.c funct2.c: In function 'funct2_': funct2.c:3: warning: incompatible implicit declaration of built-in function 'printf' funct2.c: In function 'funct3_': funct2.c:8: warning: incompatible implicit declaration of built-in function 'printf' $ ./a.out funct1: return value = 1.111100 in test1: retval from fortran call is 1.111100 funct2: return value = 1.111100 in test1: retval from c(float) call is 1.111100 funct2: return value = 2 in test1: retval from c(int) call is 2 STOP 0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15397