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/104131] New: ICE in gfc_conv_array_ref, at fortran/trans-array.c:3810
Date: Wed, 19 Jan 2022 18:53:55 +0000	[thread overview]
Message-ID: <bug-104131-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104131
           Summary: ICE in gfc_conv_array_ref, at
                    fortran/trans-array.c:3810
           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: ---

Changed between 20210110 and 20210117 :
(array instead of scalar x)


$ cat z1.f90
program p
   use iso_c_binding, only: c_intptr_t
   integer, parameter :: omp_event_handle_kind = c_intptr_t
   integer(omp_event_handle_kind) :: x(1)
   !$omp task detach(x)
   !$omp end task
end


$ gfortran-12-20220116 -c z1.f90 -fopenmp
z1.f90:5:23:

    5 |    !$omp task detach(x)
      |                       1
internal compiler error: in gfc_conv_array_ref, at fortran/trans-array.c:3810
0x7ab735 gfc_conv_array_ref(gfc_se*, gfc_array_ref*, gfc_expr*, locus*)
        ../../gcc/fortran/trans-array.c:3809
0x7d9dce gfc_conv_variable
        ../../gcc/fortran/trans-expr.c:3097
0x7d61aa gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:9406
0x811d35 gfc_trans_omp_clauses
        ../../gcc/fortran/trans-openmp.c:4080
0x8182c9 gfc_trans_omp_task
        ../../gcc/fortran/trans-openmp.c:6618
0x8182c9 gfc_trans_omp_directive(gfc_code*)
        ../../gcc/fortran/trans-openmp.c:7457
0x7a5317 trans_code
        ../../gcc/fortran/trans.c:2210
0x7ce56e gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:7651
0x7513ce translate_all_program_units
        ../../gcc/fortran/parse.c:6651
0x7513ce gfc_parse_file()
        ../../gcc/fortran/parse.c:6938
0x79e33f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

             reply	other threads:[~2022-01-19 18:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 18:53 gscfq@t-online.de [this message]
2022-01-20 10:19 ` [Bug fortran/104131] " marxin at gcc dot gnu.org
2022-01-26 17:25 ` gscfq@t-online.de
2022-03-03 10:28 ` cvs-commit at gcc dot gnu.org
2023-10-23 18:50 ` anlauf at gcc dot gnu.org
2023-10-23 19:15 ` anlauf at gcc dot gnu.org
2023-10-24 19:53 ` burnus at gcc dot gnu.org
2023-10-24 20:26 ` anlauf at gcc dot gnu.org
2023-10-25  7:07 ` burnus 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-104131-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).