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/96101] New: [9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2398
Date: Tue, 07 Jul 2020 17:18:45 +0000	[thread overview]
Message-ID: <bug-96101-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 96101
           Summary: [9/10/11 Regression] ICE in fold_convert_loc, at
                    fold-const.c:2398
           Product: gcc
           Version: 11.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 early r8 (before 20180525), r7 compiles it :


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


$ gfortran-7 -c z1.f90
$
$ gfortran-11-20200705 -c z1.f90
z1.f90:5:0:

    5 |       print *, y
      |
internal compiler error: Segmentation fault
0xd6980f crash_signal
        ../../gcc/toplev.c:328
0x9d1760 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc/tree.h:3416
0x9d1760 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2398
0x750120 gfc_trans_create_temp_array(stmtblock_t*, stmtblock_t*, gfc_ss*,
tree_node*, tree_node*, bool, bool, bool, locus*)
        ../../gcc/fortran/trans-array.c:1415
0x75d797 gfc_conv_loop_setup(gfc_loopinfo*, locus*)
        ../../gcc/fortran/trans-array.c:5246
0x75dae2 gfc_conv_expr_descriptor(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-array.c:7447
0x7de401 trans_associate_var
        ../../gcc/fortran/trans-stmt.c:1890
0x7e4af9 gfc_trans_block_construct(gfc_code*)
        ../../gcc/fortran/trans-stmt.c:2283
0x7463a7 trans_code
        ../../gcc/fortran/trans.c:1960
0x77d745 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6840
0x6f6026 translate_all_program_units
        ../../gcc/fortran/parse.c:6307
0x6f6026 gfc_parse_file()
        ../../gcc/fortran/parse.c:6546
0x74269f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

             reply	other threads:[~2020-07-07 17:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 17:18 gscfq@t-online.de [this message]
2020-07-08  7:11 ` [Bug fortran/96101] " rguenth at gcc dot gnu.org
2020-07-08  7:30 ` marxin at gcc dot gnu.org
2020-08-08 15:28 ` pault at gcc dot gnu.org
2020-08-09 17:18 ` pault at gcc dot gnu.org
2020-08-10 16:29 ` dominiq at lps dot ens.fr
2020-08-20 17:18 ` cvs-commit at gcc dot gnu.org
2020-12-28 14:56 ` cvs-commit at gcc dot gnu.org
2020-12-28 15:16 ` cvs-commit at gcc dot gnu.org
2020-12-28 16:53 ` 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-96101-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).