Commit fd5dce5c by Steven G. Kargl

re PR fortran/82884 (ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2069)

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
parent deef5083
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
......
......@@ -2604,6 +2604,7 @@ gfc_hollerith2character (gfc_expr *src, int kind)
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.
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment