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/104570] New: [12 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.cc:3681
Date: Wed, 16 Feb 2022 17:32:38 +0000	[thread overview]
Message-ID: <bug-104570-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104570
           Summary: [12 Regression] ICE in gfc_conv_scalarized_array_ref,
                    at fortran/trans-array.cc:3681
           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 recently between 20220206 and 20220213 :


$ cat z1.f90
program p
   character(:), allocatable :: x(:)
   x = ['abc']
   call s
contains
   subroutine s
      associate (y => x)
         associate (z => (y))
            print *, z
         end associate
      end associate
   end
end


$ gfortran-12-20220213 -c z1.f90
z1.f90:9:22:

    9 |             print *, z
      |                      1
internal compiler error: Segmentation fault
0xcc8a9f crash_signal
        ../../gcc/toplev.cc:322
0x7ac696 gfc_conv_scalarized_array_ref
        ../../gcc/fortran/trans-array.cc:3681
0x7ad18c gfc_conv_array_ref(gfc_se*, gfc_array_ref*, gfc_expr*, locus*)
        ../../gcc/fortran/trans-array.cc:3832
0x7dc19e gfc_conv_variable
        ../../gcc/fortran/trans-expr.cc:3097
0x7d857a gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.cc:9406
0x7dc779 gfc_conv_string_length(gfc_charlen*, gfc_expr*, stmtblock_t*)
        ../../gcc/fortran/trans-expr.cc:2551
0x7b7877 get_array_charlen
        ../../gcc/fortran/trans-array.cc:7353
0x7b798e get_array_charlen
        ../../gcc/fortran/trans-array.cc:7280
0x7b6d96 gfc_conv_expr_descriptor(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-array.cc:7680
0x81c9da trans_associate_var
        ../../gcc/fortran/trans-stmt.cc:1918
0x823761 gfc_trans_block_construct(gfc_code*)
        ../../gcc/fortran/trans-stmt.cc:2312
0x7a76e7 trans_code
        ../../gcc/fortran/trans.cc:2012
0x8236ef gfc_trans_block_construct(gfc_code*)
        ../../gcc/fortran/trans-stmt.cc:2305
0x7a76e7 trans_code
        ../../gcc/fortran/trans.cc:2012
0x7d093e gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7654
0x7d076c gfc_generate_contained_functions
        ../../gcc/fortran/trans-decl.cc:5777
0x7d076c gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7586
0x75367e translate_all_program_units
        ../../gcc/fortran/parse.cc:6651
0x75367e gfc_parse_file()
        ../../gcc/fortran/parse.cc:6938
0x7a066f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

             reply	other threads:[~2022-02-16 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 17:32 gscfq@t-online.de [this message]
2022-02-16 17:33 ` [Bug fortran/104570] " gscfq@t-online.de
2022-02-17 10:08 ` rguenth at gcc dot gnu.org
2022-02-24 13:26 ` [Bug fortran/104570] [12 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.cc:3681 since r12-7217-g57da34939703a6e6 marxin at gcc dot gnu.org
2022-02-27 20:03 ` mikael at gcc dot gnu.org
2022-03-19 20:17 ` cvs-commit at gcc dot gnu.org
2022-03-20 17:17 ` mikael at gcc dot gnu.org
2022-04-10 18:48 ` cvs-commit at gcc dot gnu.org
2022-04-24 16:54 ` cvs-commit at gcc dot gnu.org
2022-05-09 11:22 ` cvs-commit 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-104570-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).