re PR fortran/33760 (Bind(C): Using C_PTR as structure constructor gives an ICE)
commit36dcec91428522bf62c0f1bac6bff84b67fff8a7
authorChristopher D. Rickett <crickett@lanl.gov>
Wed, 17 Oct 2007 06:57:06 +0000 (17 06:57 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 17 Oct 2007 06:57:06 +0000 (17 08:57 +0200)
tree307e0d5eee45a46ff1b87c1776386eb09dffa7f7
parentaa46c8a3df0de8053cd0f3b43dbe7fd47a8c8aff
re PR fortran/33760 (Bind(C): Using C_PTR as structure constructor gives an ICE)

2007-10-17 Christopher D. Rickett <crickett@lanl.gov>

        PR fortran/33760
        * symbol.c (gen_special_c_interop_ptr): Remove code to create
        constructor for c_null_ptr and c_null_funptr with value of 0.
        * expr.c (check_init_expr): Prevent check on constructors for
        iso_c_binding derived types.
        * resolve.c (resolve_structure_cons): Verify that the user isn't
        trying to invoke a structure constructor for one of the
        iso_c_binding derived types.

2007-10-17 Christopher D. Rickett <crickett@lanl.gov>

        PR fortran/33760
        * gfortran.dg/c_ptr_tests_13.f03: New test case.

From-SVN: r129402
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_ptr_tests_13.f03 [new file with mode: 0644]