Fortran: optional argument DIM for intrinsics NORM2, PARITY must be scalar
authorHarald Anlauf <anlauf@gmx.de>
Mon, 24 Jan 2022 20:40:41 +0000 (21:40 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 25 Jan 2022 20:17:48 +0000 (21:17 +0100)
commit34e8dafb76240f69c729c11cfc8c8fc4f717bc17
treeec1ef8c1363d8cae50af44c6635b0c978bf77d06
parentbc90dd0ecf02e11d47d1af7f627e2e2acaa40106
Fortran: optional argument DIM for intrinsics NORM2, PARITY must be scalar

gcc/fortran/ChangeLog:

PR fortran/104212
* check.cc (gfc_check_norm2): Check that optional argument DIM is
scalar.
(gfc_check_parity): Likewise.

gcc/testsuite/ChangeLog:

PR fortran/104212
* gfortran.dg/argument_checking_26.f90: New test.
gcc/fortran/check.cc
gcc/testsuite/gfortran.dg/argument_checking_26.f90 [new file with mode: 0644]