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/105152] New: [9/10/11/12 Regression] ICE in gfc_conv_gfc_desc_to_cfi_desc, at fortran/trans-expr.cc:5647
Date: Mon, 04 Apr 2022 16:47:02 +0000	[thread overview]
Message-ID: <bug-105152-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 105152
           Summary: [9/10/11/12 Regression] ICE in
                    gfc_conv_gfc_desc_to_cfi_desc, at
                    fortran/trans-expr.cc:5647
           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 r9 :


$ cat z1.f90
program p
   use iso_c_binding
   type, bind(c) :: t
      integer(c_int) :: a
   end type
   interface
      function f(x) bind(c) result(z)
         import :: c_int, t
         type(t) :: x(:)
         integer(c_int) :: z
      end
   end interface
   class(*), allocatable :: y(:)
   n = f(y)
end


$ cat z2.f90
program p
   use iso_c_binding
   type, bind(c) :: t
      integer(c_int) :: a
   end type
   class(*), allocatable :: y(:)
   n = f(y)
contains
   function f(x) bind(c) result(z)
      type(t) :: x(:)
      integer(c_int) :: z
   end
end


$ gfortran-8 -c z1.f90
$
$ gfortran-12-20220403 -c z1.f90
z1.f90:14:11:

   14 |    n = f(y)
      |           1
internal compiler error: in gfc_conv_gfc_desc_to_cfi_desc, at
fortran/trans-expr.cc:5647
0x7e2e52 gfc_conv_gfc_desc_to_cfi_desc
        ../../gcc/fortran/trans-expr.cc:5647
0x7e7042 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
        ../../gcc/fortran/trans-expr.cc:6811
0x7dc7ba gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.cc:9405
0x7edae1 gfc_trans_assignment_1
        ../../gcc/fortran/trans-expr.cc:11693
0x7ab6c7 trans_code
        ../../gcc/fortran/trans.cc:1916
0x7d4b7e gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7654
0x75734e translate_all_program_units
        ../../gcc/fortran/parse.cc:6669
0x75734e gfc_parse_file()
        ../../gcc/fortran/parse.cc:6956
0x7a47df gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

             reply	other threads:[~2022-04-04 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 16:47 gscfq@t-online.de [this message]
2022-04-04 19:42 ` [Bug fortran/105152] " anlauf at gcc dot gnu.org
2022-04-05  7:00 ` rguenth at gcc dot gnu.org
2022-04-06  9:00 ` [Bug fortran/105152] [9/10/11/12 Regression] ICE in gfc_conv_gfc_desc_to_cfi_desc, at fortran/trans-expr.cc:5647 since r9-5372-gbbf18dc5d248a79a marxin at gcc dot gnu.org
2022-05-27  9:47 ` [Bug fortran/105152] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:48 ` jakub at gcc dot gnu.org
2023-05-16  5:36 ` [Bug fortran/105152] [10/11/12/13/14 " cvs-commit at gcc dot gnu.org
2023-05-16  5:44 ` pault 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-105152-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).