[Bug fortran/34079] Bind(C): Don't pass the string length as argument (for STDCALL)

2007-11-15 Thread patchapp at dberlin dot org
--- Comment #4 from patchapp at dberlin dot org 2007-11-15 15:10 --- Subject: Bug number PR34079 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00851.html -- http://gcc.gnu.org/bugzilla/sh

[Bug fortran/34079] Bind(C): Don't pass the string length as argument (for STDCALL)

2007-11-15 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-11-15 15:10 --- See also: http://gcc.gnu.org/ml/fortran/2007-11/msg00074.html and for the patch: http://gcc.gnu.org/ml/fortran/2007-11/msg00093.html -- burnus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/34079] Bind(C): Don't pass the string length as argument (for STDCALL)

2007-11-13 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-11-13 20:02 --- Note: The patch above works, one only needs to check whether there is a memory leak or something else which affects the generated tree. Index: gcc/testsuite/gfortran.dg/bind_c_vars_2.f03 =

[Bug fortran/34079] Bind(C): Don't pass the string length as argument (for STDCALL)

2007-11-13 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-11-13 14:39 --- Example: interface subroutine subiso(x) bind(c) use iso_c_binding character(kind=c_char,len=1), dimension(*) :: x end subroutine subiso subroutine subiso2(x) bind(c) ! { dg-warning "may not be C interop