Commit 082b1749 by Paul Thomas

re PR fortran/40018 (ICE in output_constructor)

2009-05-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40018
	* trans-array.c (gfc_trans_array_constructor_value): Fold
	convert numeric constants.
	(gfc_build_constant_array_constructor): The same.

2009-05-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40018
	* gfortran.dg/array_constructor_31.f90: New test.

From-SVN: r147332
parent 110ea21a
! { dg-do compile }
! Test the fix for pr40018 in which the elements in the array
! constructor would be of default type and this would cause an
! ICE in the backend because of the type mistmatch with 'i'.
!
! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
!
integer(kind=8) :: i
write(*,*) [(i, i = 1, 10)]
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