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/103368] New: [11/12 Regression] ICE in gimplify_expr, at gimplify.c:15668
Date: Mon, 22 Nov 2021 19:40:35 +0000	[thread overview]
Message-ID: <bug-103368-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 103368
           Summary: [11/12 Regression] ICE in gimplify_expr, at
                    gimplify.c:15668
           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
   type t
   end type
   type t2
      class(*), allocatable :: a
   end type
   type(t) :: x
   call sub (t2(x))
end


$ gfortran-12-20211017 -c z1.f90
z1.f90:8:16:

    8 |    call sub (t2(x))
      |                1
Error: Cannot convert TYPE(t) to CLASS(*) at (1)


$ gfortran-12-20211121 -c z1.f90
z1.f90:8:19:

    8 |    call sub (t2(x))
      |                   ^
internal compiler error: in gimplify_expr, at gimplify.c:15668
0xad2dc5 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:15668
0xad862b gimplify_modify_expr
        ../../gcc/gimplify.c:5983
0xad019a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14666
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad0a6b gimplify_statement_list
        ../../gcc/gimplify.c:2012
0xad0a6b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:15111
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad3351 gimplify_bind_expr
        ../../gcc/gimplify.c:1426
0xad060a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14867
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad0a6b gimplify_statement_list
        ../../gcc/gimplify.c:2012
0xad0a6b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:15111
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad3351 gimplify_bind_expr
        ../../gcc/gimplify.c:1426
0xad060a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14867
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad3351 gimplify_bind_expr
        ../../gcc/gimplify.c:1426
0xad060a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14867
0xad2df8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:7024
0xad3e6b gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:15912

             reply	other threads:[~2021-11-22 19:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22 19:40 gscfq@t-online.de [this message]
2021-11-23  7:34 ` [Bug fortran/103368] " rguenth at gcc dot gnu.org
2021-11-23  7:59 ` [Bug fortran/103368] [11/12 Regression] ICE in gimplify_expr, at gimplify.c:15668 since r12-4464-g017665f63047ce47 marxin at gcc dot gnu.org
2021-11-23  8:03 ` pinskia at gcc dot gnu.org
2022-04-21  7:50 ` rguenth at gcc dot gnu.org
2023-05-29 10:06 ` [Bug fortran/103368] [11/12/13/14 " jakub at gcc dot gnu.org
2024-04-02 19:40 ` [Bug fortran/103368] [11/12/13 " anlauf at gcc dot gnu.org
2024-04-03  0:49 ` jvdelisle 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-103368-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).