public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377
@ 2021-11-22 19:39 gscfq@t-online.de
  2021-11-23  7:33 ` [Bug fortran/103367] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2021-11-22 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103367
           Summary: [11/12 Regression] ICE in gfc_conv_array_initializer,
                    at fortran/trans-array.c:6377
           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 20211003 and 20211010 :
(follow-up of pr102817)


$ cat z1.f90
program p
   type t
      integer :: a(1,2) = 3
   end type
   type(t), parameter :: x(1) = t(4)
   integer :: y(1,2) = (x(b)%a)
   print *, y
end


$ gfortran-12-20211121 -c z1.f90
z1.f90:6:26:

    6 |    integer :: y(1,2) = (x(b)%a)
      |                          1
Warning: Legacy Extension: REAL array index at (1)
z1.f90:1:9:

    1 | program p
      |         1
internal compiler error: in gfc_conv_array_initializer, at
fortran/trans-array.c:6377
0x865e1a gfc_conv_array_initializer(tree_node*, gfc_expr*)
        ../../gcc/fortran/trans-array.c:6377
0x893b60 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
        ../../gcc/fortran/trans-expr.c:8375
0x874f2b gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1941
0x87770f generate_local_decl
        ../../gcc/fortran/trans-decl.c:5848
0x833a42 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4174
0x87884c generate_local_vars
        ../../gcc/fortran/trans-decl.c:6054
0x87884c gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:7579
0x7fbd3e translate_all_program_units
        ../../gcc/fortran/parse.c:6638
0x7fbd3e gfc_parse_file()
        ../../gcc/fortran/parse.c:6925
0x848a6f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

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

* [Bug fortran/103367] [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
@ 2021-11-23  7:33 ` rguenth at gcc dot gnu.org
  2021-11-23  7:58 ` [Bug fortran/103367] [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79 marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-23  7:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug fortran/103367] [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
  2021-11-23  7:33 ` [Bug fortran/103367] " rguenth at gcc dot gnu.org
@ 2021-11-23  7:58 ` marxin at gcc dot gnu.org
  2021-11-23  8:02 ` [Bug fortran/103367] [10/11/12 " pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-23  7:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|[11/12 Regression] ICE in   |[11/12 Regression] ICE in
                   |gfc_conv_array_initializer, |gfc_conv_array_initializer,
                   |at                          |at
                   |fortran/trans-array.c:6377  |fortran/trans-array.c:6377
                   |                            |since
                   |                            |r12-4278-g74ccca380cde5e79
                 CC|                            |anlauf at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2021-11-23

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-4278-g74ccca380cde5e79.

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

* [Bug fortran/103367] [10/11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
  2021-11-23  7:33 ` [Bug fortran/103367] " rguenth at gcc dot gnu.org
  2021-11-23  7:58 ` [Bug fortran/103367] [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79 marxin at gcc dot gnu.org
@ 2021-11-23  8:02 ` pinskia at gcc dot gnu.org
  2021-11-23 21:20 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-23  8:02 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.3                        |10.4

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The patch was backported even to the GCC 10 branch.

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

* [Bug fortran/103367] [10/11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-11-23  8:02 ` [Bug fortran/103367] [10/11/12 " pinskia at gcc dot gnu.org
@ 2021-11-23 21:20 ` anlauf at gcc dot gnu.org
  2022-06-28 10:47 ` [Bug fortran/103367] [10/11/12/13 " jakub at gcc dot gnu.org
  2023-07-07 10:41 ` [Bug fortran/103367] [11/12/13/14 " rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-11-23 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from anlauf at gcc dot gnu.org ---
The 'real' index 'b' is a red herring.  Replacing it e.g. by an undefined 'm'
generates the same backtrace.

Also replacing the bad code line by

  integer, parameter :: y(1,2) = (x(m)%a) ! ICE-on-invalid

reproduces the issue.

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

* [Bug fortran/103367] [10/11/12/13 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-11-23 21:20 ` anlauf at gcc dot gnu.org
@ 2022-06-28 10:47 ` jakub at gcc dot gnu.org
  2023-07-07 10:41 ` [Bug fortran/103367] [11/12/13/14 " rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug fortran/103367] [11/12/13/14 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79
  2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-06-28 10:47 ` [Bug fortran/103367] [10/11/12/13 " jakub at gcc dot gnu.org
@ 2023-07-07 10:41 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 19:39 [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 gscfq@t-online.de
2021-11-23  7:33 ` [Bug fortran/103367] " rguenth at gcc dot gnu.org
2021-11-23  7:58 ` [Bug fortran/103367] [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 since r12-4278-g74ccca380cde5e79 marxin at gcc dot gnu.org
2021-11-23  8:02 ` [Bug fortran/103367] [10/11/12 " pinskia at gcc dot gnu.org
2021-11-23 21:20 ` anlauf at gcc dot gnu.org
2022-06-28 10:47 ` [Bug fortran/103367] [10/11/12/13 " jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug fortran/103367] [11/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).