[Bug fortran/92470] CFI_address wrongly assumes that lower bounds are at zero – invalid for pointers + allocatables
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 13 11:14:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92470
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Wed Nov 13 11:13:57 2019
New Revision: 278128
URL: https://gcc.gnu.org/viewcvs?rev=278128&root=gcc&view=rev
Log:
PR fortran/92470 Fixes for CFI_address
libgfortran/
PR fortran/92470
* runtime/ISO_Fortran_binding.c (CFI_establish): Set lower_bound to 0
also for CFI_attribute_other.
gcc/testsuite/
PR fortran/92470
* gfortran.dg/ISO_Fortran_binding_1.c (establish_c): Add assert for
lower_bound == 0.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.c
trunk/libgfortran/ChangeLog
trunk/libgfortran/runtime/ISO_Fortran_binding.c
More information about the Gcc-bugs
mailing list