]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through...
authorMikael Morin <mikael.morin@tele2.fr>
Sun, 4 Jan 2009 13:01:12 +0000 (14:01 +0100)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 4 Jan 2009 13:01:12 +0000 (13:01 +0000)
commit23f2d0170d16eb9224ff19e52312ada7fe3e8e85
tree5735583d91215ed5ce6a12d11b3ab4d7aaafce06
parent1a8c13b33ce1470d5a291063a5f5d0beebf421ee
re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through expr->ref)

2009-01-04  Mikael Morin  <mikael.morin@tele2.fr>

PR fortran/38536
* gfortran.h (gfc_is_data_pointer): Added prototype
* resolve.c (gfc_iso_c_func_interface):
Use gfc_is_data_pointer to test for pointer attribute.
* dependency.c (gfc_is_data_pointer):
Support pointer-returning functions.

2009-01-04  Mikael Morin  <mikael.morin@tele2.fr>

PR fortran/38536
* gfortran.dg/c_loc_tests_13.f90: New test.
* gfortran.dg/c_loc_tests_14.f90: New test.

From-SVN: r143050
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_loc_tests_13.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_loc_tests_14.f90 [new file with mode: 0644]