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/99348] New: ICE in resolve_structure_cons, at fortran/resolve.c:1286
Date: Tue, 02 Mar 2021 18:59:33 +0000	[thread overview]
Message-ID: <bug-99348-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99348
           Summary: ICE in resolve_structure_cons, at
                    fortran/resolve.c:1286
           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 r9, between 20181028 and 20181104 :


$ cat z1.f90
program p
   type t
      character(3) :: c
   end type
   type(t), parameter :: x(1) = t('abc')
   print *, x%c%len
end


$ gfortran-11-20210228 -c z1.f90
f951: internal compiler error: Segmentation fault
0xc0666f crash_signal
        ../../gcc/toplev.c:327
0x702c1c resolve_structure_cons
        ../../gcc/fortran/resolve.c:1286
0x6f1161 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:7156
0x687212 find_inquiry_ref
        ../../gcc/fortran/expr.c:1776
0x68a7ad simplify_ref_chain
        ../../gcc/fortran/expr.c:2027
0x689e3d gfc_simplify_expr(gfc_expr*, int)
        ../../gcc/fortran/expr.c:2266
0x68a65b simplify_parameter_variable
        ../../gcc/fortran/expr.c:2110
0x68a3dd gfc_simplify_expr(gfc_expr*, int)
        ../../gcc/fortran/expr.c:2248
0x6e753f gfc_match_varspec(gfc_expr*, int, bool, bool)
        ../../gcc/fortran/primary.c:2442
0x6e92d3 gfc_match_rvalue(gfc_expr**)
        ../../gcc/fortran/primary.c:3611
0x6bd92e match_primary
        ../../gcc/fortran/matchexp.c:157
0x6bd92e match_level_1
        ../../gcc/fortran/matchexp.c:211
0x6bd92e match_mult_operand
        ../../gcc/fortran/matchexp.c:267
0x6bdb78 match_add_operand
        ../../gcc/fortran/matchexp.c:356
0x6bddcc match_level_2
        ../../gcc/fortran/matchexp.c:480
0x6bdf22 match_level_3
        ../../gcc/fortran/matchexp.c:551
0x6be014 match_level_4
        ../../gcc/fortran/matchexp.c:599
0x6be014 match_and_operand
        ../../gcc/fortran/matchexp.c:693
0x6be202 match_or_operand
        ../../gcc/fortran/matchexp.c:722
0x6be2d2 match_equiv_operand
        ../../gcc/fortran/matchexp.c:765

             reply	other threads:[~2021-03-02 18:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-02 18:59 gscfq@t-online.de [this message]
2021-03-02 19:00 ` [Bug fortran/99348] " gscfq@t-online.de
2021-03-03  7:54 ` marxin at gcc dot gnu.org
2021-03-26 21:08 ` anlauf at gcc dot gnu.org
2021-10-01 21:18 ` anlauf at gcc dot gnu.org
2021-10-10 18:12 ` cvs-commit at gcc dot gnu.org
2021-10-10 18:18 ` anlauf at gcc dot gnu.org
2021-11-07 20:54 ` cvs-commit at gcc dot gnu.org
2021-11-13 20:15 ` cvs-commit at gcc dot gnu.org
2021-11-13 20:17 ` anlauf 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-99348-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).