re PR fortran/41922 (Diagnostic: No location shown for overlappingly initialized...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 31 Jul 2016 01:51:37 +0000 (01:51 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 31 Jul 2016 01:51:37 +0000 (01:51 +0000)
commit93cb9a5aa147c94d18c708fa67e6fcb546dd7391
tree1bd2d1bb99c6fd9044ff58b2c1250dde11ce8bcb
parent01afb976deb6122c3c4832d4ad04276f8816c97f
re PR fortran/41922 (Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars)

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.

From-SVN: r238915
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]