public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/100642] New: ICE in omp_code_to_statement, at fortran/openmp.c:6907
Date: Mon, 17 May 2021 19:19:23 +0000	[thread overview]
Message-ID: <bug-100642-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 100642
           Summary: ICE in omp_code_to_statement, at fortran/openmp.c:6907
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r11 between 20210411 and 20210425 :


$ cat z1.f90
program p
   use omp_lib, only: omp_depend_kind
   integer(omp_depend_kind) :: a, b
   !$acc data
   !$omp depobj(b) depend(out:a)
   !$acc end data
end


$ cat z2.f90
program p
   integer :: a, b
   !$acc data
   !$omp depobj(b) depend(out:a)
   !$acc end data
end


$ gfortran-12-20210516 -c z1.f90 -fopenmp -fopenacc
f951: internal compiler error: in omp_code_to_statement, at
fortran/openmp.c:6907
0x6d1e8d omp_code_to_statement
        ../../gcc/fortran/openmp.c:6907
0x6dbdfd resolve_omp_directive_inside_oacc_region
        ../../gcc/fortran/openmp.c:6974
0x6dbdfd gfc_resolve_omp_directive(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/openmp.c:7291
0x7004a3 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:12242
0x6ff2bf gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10843
0x6dcb63 gfc_resolve_oacc_blocks(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/openmp.c:7126
0x6ff5fb gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11755
0x701f67 resolve_codes
        ../../gcc/fortran/resolve.c:17402
0x70202e gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17437
0x6ea584 resolve_all_program_units
        ../../gcc/fortran/parse.c:6309
0x6ea584 gfc_parse_file()
        ../../gcc/fortran/parse.c:6561
0x736f7f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

             reply	other threads:[~2021-05-17 19:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 19:19 gscfq@t-online.de [this message]
2021-05-18  8:04 ` [Bug fortran/100642] [12 Regression] ICE in omp_code_to_statement, at fortran/openmp.c:6907 since r12-20-ga61c4964cd714462 marxin at gcc dot gnu.org
2021-05-18 14:41 ` cvs-commit at gcc dot gnu.org
2021-05-18 15:03 ` burnus at gcc dot gnu.org
2022-11-28 22:50 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-100642-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).