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

            Bug ID: 89388
           Summary: Component selection for assumed-size DT array
           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 45750
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45750&action=edit
test code

The attached test case, which is non-conforming (because it requires
copy-in/out of an assumed-size object) compiles and creates an executable that
crashes with a SIGSEGV. It would be good if a compile-time error could be
created for this case. E.g. ifort says:
The upper bound shall not be omitted in the last dimension of a reference to an
assumed size array.
nagfor says:
 dt_ass_neg_03.f90, line 10: Invalid appearance of assumed-size array name Y

The Fortran 2018 constraint that applies is C1002 (10.1.2.2)

Regards

Reply via email to