2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
commit71b5dc234703335c6b57d8f74532c98e27e5eecb
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Jul 2016 01:51:37 +0000 (31 01:51 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Jul 2016 01:51:37 +0000 (31 01:51 +0000)
tree1bd2d1bb99c6fd9044ff58b2c1250dde11ce8bcb
parent33d4e63c145b95da16bbbd6b4de7986c1a0a471d
2016-07-30  Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/41922
* target-memory.c (expr_to_char): Pass in locus and use it in error
messages.
(gfc_merge_initializers): Ditto.
* target-memory.h: Update prototype for gfc_merge_initializers ().
* trans-common.c (get_init_field): Use the correct locus.

2016-07-30  Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/41922
* gfortran.dg/equiv_constraint_5.f90: Adjust the error message.
* gfortran.dg/equiv_constraint_7.f90: Ditto.
* gfortran.dg/pr41922.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238915 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/target-memory.c
gcc/fortran/target-memory.h
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/equiv_constraint_5.f90
gcc/testsuite/gfortran.dg/equiv_constraint_7.f90
gcc/testsuite/gfortran.dg/pr41922.f90 [new file with mode: 0644]