https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86111
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sat Oct 6 22:41:06 2018 New Revision: 264902 URL: https://gcc.gnu.org/viewcvs?rev=264902&root=gcc&view=rev Log: 2018-10-06 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/86111 Backport from trunk * 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 <tkoe...@gcc.gnu.org> PR fortran/86111 Backport from trunk * gfortran.dg/array_constructor_type_23.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/array_constructor_type_23.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/arith.c branches/gcc-8-branch/gcc/fortran/gfortran.h branches/gcc-8-branch/gcc/testsuite/ChangeLog