2020-8-20 José Rui Faustino de Sousa <jrfsousa@gmail.com>
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Sun, 30 Aug 2020 17:28:08 +0000 (17:28 +0000)
committerJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Sun, 30 Aug 2020 17:28:08 +0000 (17:28 +0000)
commit8e1be7efcb1c68dd82e2b2c1bcf3e5ace245654d
tree81c3e89cbcf01f520d97ed315f4870c994d7b48f
parent44c677d1ebb24fb9137943afb6a9981d0b2c14ea
2020-8-20  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

gcc/fortran/ChangeLog:

PR fortran/94110
* interface.c (gfc_compare_actual_formal): Add code to also raise
the actual argument cannot be an assumed-size array error when the
dummy arguments are deferred-shape or assumed-rank pointer.

gcc/testsuite/ChangeLog:

PR fortran/94110
* gfortran.dg/PR94110.f90: New test.
gcc/fortran/interface.c
gcc/testsuite/gfortran.dg/PR94110.f90 [new file with mode: 0644]