[Bug 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
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 10 18:33:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92123
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Nov 10 18:33:00 2019
New Revision: 278025
URL: https://gcc.gnu.org/viewcvs?rev=278025&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_15.c
trunk/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_15.f90
trunk/gcc/testsuite/gfortran.dg/bind_c_procs_3.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list