https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66386
Bug ID: 66386
Summary: ICE: FORALL reading multiple elements from one array
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: wangmianzhi1 at linuxmail dot org
Target Milestone: ---
The ICE is triggered when compiling the following code with -O1 or higher -O
levels.
program test
double precision::a(30),b(3,10)
a(:)=1d0
forall(i=1:10)
b(:,i)=a(10*[0,1,2]+i)
end forall
end program