2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / parameter_array_init_6.f90
blob9a654db3f001adf765fa826248277e0c23013d89
1 ! { dg-do compile }
3 ! PR fortran/44742
5 ! Test case based on Juergen Reuter's and reduced by
6 ! Janus Weil.
8 ! The program creates a large array constructor, which
9 ! exceeds -fmax-array-constructor - and caused an ICE.
12 module proc8
13 implicit none
14 integer, parameter :: N = 256
15 logical, dimension(N**2), parameter :: A = .false.
16 logical, dimension(N,N), parameter :: B &
17 = reshape ( (/ A /), (/ N, N /) ) ! { dg-error "array constructor at .1. requires an increase" }
18 end module