Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/parameter_array_init_6.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/44742 ! ! Test case based on Juergen Reuter's and reduced by ! Janus Weil. ! ! The program creates a large array constructor, which ! exceeds -fmax-array-constructor - and caused an ICE. ! module proc8 implicit none integer, parameter :: N = 256 logical, dimension(N**2), parameter :: A = .false. logical, dimension(N,N), parameter :: B & = reshape ( (/ A /), (/ N, N /) ) ! { dg-error "array constructor at .1. requires an increase" } end module