Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/associate_26.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 |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! { dg-options "-fcoarray=single" } | |
3 ! | |
4 ! Test the fix for PR78152 | |
5 ! | |
6 ! Contributed by <physiker@toast2.net> | |
7 ! | |
8 program co_assoc | |
9 implicit none | |
10 integer, parameter :: p = 5 | |
11 real, allocatable :: a(:,:)[:,:] | |
12 allocate (a(p,p)[2,*]) | |
13 associate (i => a(1:p, 1:p)) | |
14 end associate | |
15 end program co_assoc |