2018-06-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78571
* data.c (create_character_initializer): Return early if type is
incompatible with CHARACTER.
2018-06-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78571
* gfortran.dg/pr78571.f90: New test.
From-SVN: r261343
+2018-06-08 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78571
+ * data.c (create_character_initializer): Return early if type is
+ incompatible with CHARACTER.
+
2018-06-07 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/86045
HOST_WIDE_INT len, start, end, tlen;
gfc_char_t *dest;
bool alloced_init = false;
-
+
+ if (init && init->ts.type != BT_CHARACTER)
+ return NULL;
+
gfc_extract_hwi (ts->u.cl->length, &len);
if (init == NULL)
+2018-06-08 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78571
+ * gfortran.dg/pr78571.f90: New test.
+
2018-06-08 Peter Bergner <bergner@vnet.ibm.com>
PR target/85755
--- /dev/null
+! { dg-do compile }
+! PR fortran/78571
+program p
+ type t
+ character :: c
+ end type
+ character :: x = t('a') ! { dg-error "convert TYPE" }
+ data x /'b'/
+end