https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89841

            Bug ID: 89841
           Summary: improper descriptor information passed to C
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Bader at lrz dot de
  Target Milestone: ---

Created attachment 46029
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46029&action=edit
UNIX archive with test case

The attached archive contains a Fortran main program and a C source file. It
can be compiled with

gcc -c assumed_shape_01_pos.c
gfortran assumed_shape_01_pos.f90 assumed_shape_01_pos.o

Running the resulting executable shows a failure to properly pass the
descriptor information to C. Since the dummy arguments are declared
assumed-shape, that->attribute should have the value CFI_attribute_other even
if the actual argument is POINTER or ALLOCATABLE. Furthermore, the lower bounds
are also not remapped as is required for a CFI_attribute_other descriptor.

Reply via email to