re PR fortran/92123 ([F2018/array-descriptor] Scalar allocatable/pointer with array...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 10 Nov 2019 18:33:00 +0000 (18:33 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 10 Nov 2019 18:33:00 +0000 (18:33 +0000)
commit0313a84a2faa8f685eb489fa787f1ea969f68560
tree3f4a01ea876388bd1334b361f0a96304fc93ff8b
parent4b77a3806c4f2e27d149da326a689286043e433c
re PR fortran/92123 ([F2018/array-descriptor]  Scalar allocatable/pointer with array descriptor (via bind(C)): ICE with select rank or error scalar variable with POINTER or ALLOCATABLE in procedure with BIND(C) is not yet supported)

2019-11-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/92123
*decl.c (gfc_verify_c_interop_param): Remove error asserting
that pointer or allocatable variables in a bind C procedure are
not supported. Delete some trailing spaces.
* trans-stmt.c (trans_associate_var): Correct the attempt to
treat scalar pointer or allocatable temporaries as if they are
array descriptors.

2019-11-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/92123
* gfortran.dg/bind_c_procs_3.f90 : New test.
* gfortran.dg/ISO_Fortran_binding_15.c : New test.
* gfortran.dg/ISO_Fortran_binding_15.f90 : Additional source.

From-SVN: r278025
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_15.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_15.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_procs_3.f90 [new file with mode: 0644]