This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50564] [4.7 Regression] Front-end optimization - ICE with FORALL


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50564

--- Comment #9 from tkoenig at netcologne dot de <tkoenig at netcologne dot de> 2011-10-10 18:57:09 UTC ---
> implicit none
> integer :: i
> real :: A(5), B(5)
> B(1) = 3.344
> A = [real :: 1, 2, 3, 4, 5 ]
> !$omp parallel default(shared)
> !$omp workshare
> A(:) = A(:)*cos(B(1))+A(:)*cos(B(1))
> !$omp end workshare nowait
> !$omp end parallel ! sync is implied here
> print *, A
> end
>
>
> Answer: With -O, one gets an ICE:

The equivalent test case (inserting the BLOCK by hand)
gets a very strange error, PR 50688 .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]