public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/95550] New: [OpenACC] ICE in expand_oacc_for, at omp-expand.c:6075
@ 2020-06-05  9:58 burnus at gcc dot gnu.org
  2021-09-28  8:16 ` [Bug middle-end/95550] " tetra2005 at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2020-06-05  9:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95550

            Bug ID: 95550
           Summary: [OpenACC] ICE in expand_oacc_for, at omp-expand.c:6075
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: openacc
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

The following program gives an ICE with -fopenacc:

   12 |     !$acc loop private(A)
      | 
internal compiler error: in expand_oacc_for, at omp-expand.c:6075
0x6b9638 expand_oacc_for
        ../../repos/gcc-cs-og10-pre/gcc/omp-expand.c:6075
0xd6eadf expand_omp_for
        ../../repos/gcc-cs-og10-pre/gcc/omp-expand.c:6583
0xd6f5ea expand_omp
        ../../repos/gcc-cs-og10-pre/gcc/omp-expand.c:8912



program main
  implicit none (type, external)
  integer :: j, i
  integer, allocatable :: A(:)

  A = [(3*j, j=1, 10)]

  !$acc parallel create(A)
    A(:) = [(-2*i, i = 1, size(A))]
    !$acc loop private(A)
    do i = 1, 10
      A(i) = 9*i
    end do
    !if (any (A /= [(-2*i, i = 1, 10)])) error stop 2
  !$acc end parallel
end

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

end of thread, other threads:[~2022-10-12  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05  9:58 [Bug middle-end/95550] New: [OpenACC] ICE in expand_oacc_for, at omp-expand.c:6075 burnus at gcc dot gnu.org
2021-09-28  8:16 ` [Bug middle-end/95550] " tetra2005 at gmail dot com
2021-09-28  8:56 ` tetra2005 at gmail dot com
2022-10-12  7:26 ` tschwinge 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).