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

            Bug ID: 84270
           Summary: optimization bug with assumed size array argument
           Product: gcc
           Version: 7.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: weinert at cmth dot phys.uwm.edu
  Target Milestone: ---

Created attachment 43359
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43359&action=edit
simple test case

Optimization bug at -O2, -O3 with message

    vr = matmul( orth(:,:,n), v )
                1
Error: The upper bound in the last dimension must appear in the reference to
the assumed size array ‘orth’ at (1) lhcal.f90:33:25:

Attached test case is taken from larger program, and only appears to be a
problem if orth is an assumed size arrays with the * in the last dimension. (If
assumed shape, also fine.) Obviously easy to work around, so minor.

Reply via email to