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/104130] New: [12 Regression] ICE in gfc_add_class_array_ref, at fortran/class.c:274
Date: Wed, 19 Jan 2022 18:52:44 +0000	[thread overview]
Message-ID: <bug-104130-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104130
           Summary: [12 Regression] ICE in gfc_add_class_array_ref, at
                    fortran/class.c:274
           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 20211017 and 20211024 :


$ cat z1.f90
program p
   class(*), pointer :: z(:,:)
   call s(transpose(z))
contains
   subroutine s(x) bind(c)
      integer, contiguous :: x(:,:)
   end
end


$ gfortran-12-20211017 -c z1.f90
$
$ gfortran-12-20220116 -c z1.f90
z1.f90:3:23:

    3 |    call s(transpose(z))
      |                       1
internal compiler error: Segmentation fault
0xcc359f crash_signal
        ../../gcc/toplev.c:322
0x6cc528 gfc_add_class_array_ref(gfc_expr*)
        ../../gcc/fortran/class.c:274
0x7f79bf gfc_conv_is_contiguous_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-intrinsic.c:2864
0x7db247 gfc_conv_subref_array_arg(gfc_se*, gfc_expr*, int, sym_intent, bool,
gfc_symbol const*, char const*, gfc_symbol*, bool)
        ../../gcc/fortran/trans-expr.c:5244
0x7db611 gfc_conv_gfc_desc_to_cfi_desc
        ../../gcc/fortran/trans-expr.c:5553
0x7e09b2 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
        ../../gcc/fortran/trans-expr.c:6804
0x81d120 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
        ../../gcc/fortran/trans-stmt.c:422
0x7a55f8 trans_code
        ../../gcc/fortran/trans.c:1984
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:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 18:52 gscfq@t-online.de [this message]
2022-01-20  7:56 ` [Bug fortran/104130] " rguenth at gcc dot gnu.org
2022-01-20 10:17 ` [Bug fortran/104130] [12 Regression] ICE in gfc_add_class_array_ref, at fortran/class.c:274 since r12-4467-g64f9623765da3306 marxin at gcc dot gnu.org
2022-05-06  8:32 ` [Bug fortran/104130] [12/13 " jakub at gcc dot gnu.org
2023-05-08 12:23 ` [Bug fortran/104130] [12/13/14 " rguenth 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-104130-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).