re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 22 Jan 2011 17:30:22 +0000 (17:30 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 22 Jan 2011 17:30:22 +0000 (17:30 +0000)
commit8a9adf2c8fde74d9789b01f5c35c0e652dd69a8a
tree5edf68a225dc4d911ae38f40808a27923b4b6706
parent9a7c205049669b3d1cbf597c416541a89cfe2289
re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through expr->ref)

2011-01-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/38536
* resolve.c (gfc_iso_c_func_interface):  For C_LOC,
check for array sections followed by component references
which are illegal.  Also check for coindexed arguments.

2011-01-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

From-SVN: r169130
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_loc_tests_16.f90 [new file with mode: 0644]