public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573
@ 2021-11-08 18:43 gscfq@t-online.de
  2021-11-09  7:23 ` [Bug fortran/103139] " gscfq@t-online.de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-11-08 18:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103139
           Summary: [12 Regression] ICE in fold_convert_loc, at
                    fold-const.c:2573
           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, extends(t) :: t2
   end type
   type t3
      class(t), allocatable :: x
   end type
   type(t2) :: x
   call sub (t3(x))
end


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

   10 |    call sub (t3(x))
      |                1
Error: Cannot convert TYPE(t2) to CLASS(__class_p_T_a) at (1)


$ gfortran-12-20211107 -c z1.f90
z1.f90:10:19:

   10 |    call sub (t3(x))
      |                   1
internal compiler error: in fold_convert_loc, at fold-const.c:2573
0xa5bdc3 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2573
0x884807 gfc_trans_subcomponent_assign
        ../../gcc/fortran/trans-expr.c:8936
0x88513b gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool)
        ../../gcc/fortran/trans-expr.c:9174
0x87d780 gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc/fortran/trans-expr.c:9241
0x87d9bc gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:9409
0x8855e2 gfc_conv_expr_reference(gfc_se*, gfc_expr*, bool)
        ../../gcc/fortran/trans-expr.c:9535
0x88797a 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:6506
0x8c3db8 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
        ../../gcc/fortran/trans-stmt.c:424
0x84ce08 trans_code
        ../../gcc/fortran/trans.c:1984
0x875cfe gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:7666
0x7f920e translate_all_program_units
        ../../gcc/fortran/parse.c:6629
0x7f920e gfc_parse_file()
        ../../gcc/fortran/parse.c:6916
0x845d3f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573
  2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
@ 2021-11-09  7:23 ` gscfq@t-online.de
  2021-11-09  8:35 ` [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-11-09  7:23 UTC (permalink / raw)
  To: gcc-bugs

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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

It is accepted by gfortran/ifort/ifx if the assignment 
in t3(x=x) is replaced by a direct assignment
(example from comment #0 is also accepted by ifort/ifx)


$ cat z2.f90
program p
   type t
   end type
   type, extends(t) :: t2
   end type
   type(t) :: x = t()
   type(t2) :: y = t2()
   class(t), allocatable :: z
   z = x
   z = y
   z = x
   z = y
end

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47
  2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
  2021-11-09  7:23 ` [Bug fortran/103139] " gscfq@t-online.de
@ 2021-11-09  8:35 ` marxin at gcc dot gnu.org
  2021-11-09 11:24 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-09  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |fold_convert_loc, at        |fold_convert_loc, at
                   |fold-const.c:2573           |fold-const.c:2573 since
                   |                            |r12-4464-g017665f63047ce47
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-11-09

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-4464-g017665f63047ce47.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47
  2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
  2021-11-09  7:23 ` [Bug fortran/103139] " gscfq@t-online.de
  2021-11-09  8:35 ` [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47 marxin at gcc dot gnu.org
@ 2021-11-09 11:24 ` rguenth at gcc dot gnu.org
  2022-05-06  8:31 ` [Bug fortran/103139] [12/13 " jakub at gcc dot gnu.org
  2023-05-08 12:23 ` [Bug fortran/103139] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-09 11:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
           Priority|P3                          |P4

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/103139] [12/13 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47
  2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-11-09 11:24 ` rguenth at gcc dot gnu.org
@ 2022-05-06  8:31 ` jakub at gcc dot gnu.org
  2023-05-08 12:23 ` [Bug fortran/103139] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |12.2

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 12.1 is being released, retargeting bugs to GCC 12.2.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/103139] [12/13/14 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47
  2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-05-06  8:31 ` [Bug fortran/103139] [12/13 " jakub at gcc dot gnu.org
@ 2023-05-08 12:23 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-08 12:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 18:43 [Bug fortran/103139] New: [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 gscfq@t-online.de
2021-11-09  7:23 ` [Bug fortran/103139] " gscfq@t-online.de
2021-11-09  8:35 ` [Bug fortran/103139] [12 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47 marxin at gcc dot gnu.org
2021-11-09 11:24 ` rguenth at gcc dot gnu.org
2022-05-06  8:31 ` [Bug fortran/103139] [12/13 " jakub at gcc dot gnu.org
2023-05-08 12:23 ` [Bug fortran/103139] [12/13/14 " rguenth at gcc dot gnu.org

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).