]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/interface.cc
Fortran: rank checking with explicit-/assumed-size arrays and CLASS [PR58331]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 14 Mar 2023 19:23:06 +0000 (20:23 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 15 Mar 2023 19:22:29 +0000 (20:22 +0100)
commit901edd99b44976b3c2b13a7d525d9e315540186a
treed8f6485d1c8aa049cd067745f44adca793b9b2a5
parentbe20dcc359bcc4677c5b9ce011d3cd7b4ce94a64
Fortran: rank checking with explicit-/assumed-size arrays and CLASS [PR58331]

gcc/fortran/ChangeLog:

PR fortran/58331
* interface.cc (compare_parameter): Adjust check of array dummy
arguments to handle the case of CLASS variables.

gcc/testsuite/ChangeLog:

PR fortran/58331
* gfortran.dg/class_dummy_10.f90: New test.

Co-authored-by: Tobias Burnus <tobias@codesourcery.com>
gcc/fortran/interface.cc
gcc/testsuite/gfortran.dg/class_dummy_10.f90 [new file with mode: 0644]