2017-11-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/82884
* arith.c (gfc_hollerith2character): Clear pad.
2017-11-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/82884
* gfortran.dg/hollerith_character_array_constructor.f90: New test.
From-SVN: r254553
+2017-11-08 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/82884
+ * arith.c (gfc_hollerith2character): Clear pad.
+
2017-11-08 Janne Blomqvist <jb@gcc.gnu.org>
PR 82869
result = gfc_copy_expr (src);
result->ts.type = BT_CHARACTER;
result->ts.kind = kind;
+ result->ts.u.pad = 0;
result->value.character.length = result->representation.length;
result->value.character.string
+2017-11-08 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/82884
+ * gfortran.dg/hollerith_character_array_constructor.f90: New test.
+
2017-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/store_v2vec_lanes.c: New test.
--- /dev/null
+! { dg-do run }
+! { dg-options "-w" }
+! PR fortran/82884
+! Original code contributed by Gerhard Steinmetz
+program p
+ character :: c(4) = [1h(, 1hi, 1h4, 1h)]
+ if (c(1) /= '(') call abort
+ if (c(2) /= 'i') call abort
+ if (c(3) /= '4') call abort
+ if (c(4) /= ')') call abort
+end