re PR fortran/38351 (Poor error message for rank mismatch in operator args)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 9 Jun 2018 15:58:24 +0000 (15:58 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 9 Jun 2018 15:58:24 +0000 (15:58 +0000)
commit1dd88f8beedd63cd957edcdf2a28f7b76dfc583a
treeca0891c34fc2374a2efdbb7e31482d272bb071dd
parent3cf89a7b992d483e80b3b5960f6f4012fae95045
re PR fortran/38351 (Poor error message for rank mismatch in operator args)

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/38351
* resolve.c (resolve_operator): Provide better error message for
derived type entity used in an binary intrinsic numeric operator.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/38351
* gfortran.dg/pr38351.f90: New test.
* gfortran.dg/typebound_operator_4.f03: Adjust for new error message.

From-SVN: r261363
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr38351.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/typebound_operator_4.f03