]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.c
re PR fortran/33040 ([ISO_C_BINDING] ICE in gfc_trans_structure_assign)
authorChristopher D. Rickett <crickett@lanl.gov>
Tue, 11 Sep 2007 15:53:22 +0000 (17:53 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 11 Sep 2007 15:53:22 +0000 (17:53 +0200)
commit9dc3595654f0dfbf2821d0a84972d9c1df01b311
treebcba799a5c8ebe83506fbae2c310b1dbef1ed363
parentfa6763a6fcd6757688a5ee739d4808bb09b1c5d4
re PR fortran/33040 ([ISO_C_BINDING] ICE in gfc_trans_structure_assign)

2007-09-11  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/33040
* trans-expr.c (gfc_trans_structure_assign): Convert component
C_NULL_PTR and C_NULL_FUNPTR component initializers to (void *).
* trans-types.c (gfc_get_derived_type): Create a backend_decl for
the c_address field of C_PTR and C_FUNPTR and ensure initializer
is of proper type/kind for (void *).

2007-09-11  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/33040
* gfortran.dg/c_ptr_tests_11.f03: New test case.

From-SVN: r128385
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_ptr_tests_11.f03 [new file with mode: 0644]