re PR fortran/86111 (ICE in gfc_arith_concat, at fortran/arith.c:985)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Oct 2018 18:20:14 +0000 (18:20 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Oct 2018 18:20:14 +0000 (18:20 +0000)
commit7318fdcaaabd65b2fc4a38ef2867a94d1550b11a
treee11eef0b1f2bfb6edd6ff15edc231b2047f70ea6
parent2b03b800d866d345b078eaec77ef47fb05daeec2
re PR fortran/86111 (ICE in gfc_arith_concat, at fortran/arith.c:985)

2018-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/86111
* gfortran.h (enum arith): Add ARITH_WRONGCONCAT.
* arith.h (gfc_arith_error): Issue error for ARITH_WRONGCONCAT.
(gfc_arith_concat):  If the types of op1 and op2 are not
character of if their kinds do not match, issue ARITH_WRONGCONCAT.

2018-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/86111
* gfortran.dg/array_constructor_type_23.f90: New test.

From-SVN: r264900
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/gfortran.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_type_23.f90 [new file with mode: 0644]