re PR fortran/60091 (Misleading error messages in rank-2 pointer assignment to rank...
authorHarald Anlauf <anlauf@gmx.de>
Fri, 15 Mar 2019 22:20:20 +0000 (22:20 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Fri, 15 Mar 2019 22:20:20 +0000 (22:20 +0000)
commiteb1474baeebc8263d54ed50d532f40f777d5fabd
tree576f2a50e290e3b1d4c62e1669f984c7a3667ae1
parent850b8aa3091a2c62200bde93fc61101e4dec45b6
re PR fortran/60091 (Misleading error messages in rank-2 pointer assignment to rank-1 target)

2019-03-15  Harald Anlauf  <anlauf@gmx.de>

PR fortran/60091
* expr.c (gfc_check_pointer_assign): Correct and improve error
messages for invalid pointer assignments.

PR fortran/60091
* gfortran.dg/pointer_remapping_3.f08: Adjust error messages.
* gfortran.dg/pointer_remapping_7.f90: Adjust error message.

From-SVN: r269717
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_remapping_3.f08
gcc/testsuite/gfortran.dg/pointer_remapping_7.f90