re PR fortran/33020 (Bind(C): c_f_pointer: type/rank mismatch error with integer...
commitaa2f6edbf74131aff10dae81dab928b3ddbb307e
authorChristopher D. Rickett <crickett@lanl.gov>
Wed, 22 Aug 2007 21:28:08 +0000 (22 21:28 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 22 Aug 2007 21:28:08 +0000 (22 23:28 +0200)
treea40c16b3d5f5ed186bfbe426cb793d8f1fe8d75a
parent129d15a3e011dd6f48865673f70396a957c4deff
re PR fortran/33020 (Bind(C): c_f_pointer: type/rank mismatch error with integer(8) SHAPE)

2007-08-22  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/33020
* resolve.c (gfc_iso_c_sub_interface): Remove setting of type and
kind for optional SHAPE parameter of C_F_POINTER.

2007-08-22  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/33020
* gfortran.dg/c_f_pointer_shape_tests_2.f03: Update test to
include multiple kinds for SHAPE parameter within a single
namespace.
* gfortran.dg/c_f_pointer_shape_tests_2_driver.c: Ditto.
* gfortran.dg/c_f_pointer_shape_tests_3.f03: New test case.

From-SVN: r127719
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2.f03
gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2_driver.c
gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_3.f03 [new file with mode: 0644]