public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50690] New: ICE with front end optimization and OMP workshare
@ 2011-10-10 19:14 tkoenig at gcc dot gnu.org
  2011-10-10 19:32 ` [Bug fortran/50690] [4.7 Regression] " burnus at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-10-10 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50690
           Summary: ICE with front end optimization and OMP workshare
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tkoenig@gcc.gnu.org


>From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50564#c8 :

Actually, I wonder in that case, how WORKSHARE will be handled, e.g.

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:

omp.f90:7:0: internal compiler error: gfc_trans_omp_workshare(): Bad statement
code


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-11 17:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-10 19:14 [Bug fortran/50690] New: ICE with front end optimization and OMP workshare tkoenig at gcc dot gnu.org
2011-10-10 19:32 ` [Bug fortran/50690] [4.7 Regression] " burnus at gcc dot gnu.org
2011-10-11 18:04 ` tkoenig at netcologne dot de
2011-10-11 18:34 ` burnus at gcc dot gnu.org
2011-10-11 19:14 ` tkoenig at gcc dot gnu.org
2011-10-11 19:25 ` tkoenig at gcc dot gnu.org
2011-10-11 19:54 ` tkoenig at gcc dot gnu.org
2011-10-16 13:15 ` tkoenig at gcc dot gnu.org
2011-10-20 20:38 ` tkoenig at gcc dot gnu.org
2011-10-22  8:11 ` tkoenig at gcc dot gnu.org
2011-10-27 10:39 ` rguenth at gcc dot gnu.org
2011-12-11 17:49 ` tkoenig at gcc dot gnu.org
2011-12-11 19:46 ` tkoenig at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).