This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20766] New: gfortran - run time error when calling fortran subroutine from c
- From: "dir at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2005 16:36:04 -0000
- Subject: [Bug libfortran/20766] New: gfortran - run time error when calling fortran subroutine from c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We do this all of the time and g77, Absoft, IBM etc... do not complain.
[dranta:~/tests/gfortran] dir% gcc -c callc.c
[dranta:~/tests/gfortran] dir% g77 -c callf.f
[dranta:~/tests/gfortran] dir% g77 -o callc callc.o callf.o
[dranta:~/tests/gfortran] dir% callc
I am Here
[dranta:~/tests/gfortran] dir% gcc -c callc.c
[dranta:~/tests/gfortran] dir% gfortran -c callf.f
[dranta:~/tests/gfortran] dir% gfortran -o callc callc.o callf.o
[dranta:~/tests/gfortran] dir% callc
Fortran runtime error: End of record
[dranta:~/tests/gfortran] dir% cat callc.c
#include <stdio.h>
int main()
{
sub_();
}
[dranta:~/tests/gfortran] dir% cat callf.f
subroutine sub()
write(*,*)' I am Here '
return
end
[dranta:~/tests/gfortran] dir% which gcc
/Users/dir/gfortran/bin/gcc
--
Summary: gfortran - run time error when calling fortran
subroutine from c
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dir at lanl dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: powerpc-apple-darwin7.8.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20766