public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/106944] New: ICE in gfc_build_array_ref, at fortran/trans.cc:482
@ 2022-09-14 18:48 gscfq@t-online.de
  2022-09-14 18:51 ` [Bug fortran/106944] " gscfq@t-online.de
  2022-09-14 19:56 ` marxin at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2022-09-14 18:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106944
           Summary: ICE in gfc_build_array_ref, at fortran/trans.cc:482
           Product: gcc
           Version: 13.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 r10 between 20190825 and 20190901 :


$ cat z1.f90
module m
   type t(n)
      integer, len :: n = 4
   end type
contains
   subroutine s(x)
      type(t(8)) :: x(..)
      select rank (x)
      end select
   end
end


$ cat z2.f90
module m
   type t(n)
      integer, kind :: n = 4
   end type
contains
   subroutine s(x)
      type(t(8)) :: x(..)
      select rank (x)
      end select
   end
end


$ gfortran-13-20220911 -c z1.f90 -fcheck=all
z1.f90:10:6:

   10 |    end
      |      1
internal compiler error: Segmentation fault
0xd8cf5f crash_signal
        ../../gcc/toplev.cc:314
0x8671dd gfc_build_array_ref(tree_node*, tree_node*, tree_node*, bool,
tree_node*)
        ../../gcc/fortran/trans.cc:482
0x86cc2c gfc_conv_descriptor_subfield
        ../../gcc/fortran/trans-array.cc:445
0x86cccd gfc_conv_descriptor_ubound
        ../../gcc/fortran/trans-array.cc:509
0x875828 gfc_conv_descriptor_ubound_get(tree_node*, tree_node*)
        ../../gcc/fortran/trans-array.cc:517
0x875828 gfc_full_array_size(stmtblock_t*, tree_node*, int)
        ../../gcc/fortran/trans-array.cc:8683
0x87b77e structure_alloc_comps
        ../../gcc/fortran/trans-array.cc:9035
0x87fb26 gfc_check_pdt_dummy(gfc_symbol*, tree_node*, int, gfc_actual_arglist*)
        ../../gcc/fortran/trans-array.cc:10285
0x8917d1 gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../gcc/fortran/trans-decl.cc:4669
0x893b85 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7756
0x86ada9 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.cc:2369
0x815a4f translate_all_program_units
        ../../gcc/fortran/parse.cc:6658
0x815a4f gfc_parse_file()
        ../../gcc/fortran/parse.cc:6977
0x86350f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229

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

* [Bug fortran/106944] ICE in gfc_build_array_ref, at fortran/trans.cc:482
  2022-09-14 18:48 [Bug fortran/106944] New: ICE in gfc_build_array_ref, at fortran/trans.cc:482 gscfq@t-online.de
@ 2022-09-14 18:51 ` gscfq@t-online.de
  2022-09-14 19:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2022-09-14 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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


Similar for these variants :


$ cat z3.f90
module m
   type t(n)
      integer, len :: n = 4
   end type
contains
   subroutine s(x)
      type(t) :: x(..)
      select rank (x)
      end select
   end
end


$ cat z4.f90
module m
   type t(n)
      integer, kind :: n = 4
   end type
contains
   subroutine s(x)
      type(t) :: x(..)
      select rank (x)
      end select
   end
end

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

* [Bug fortran/106944] ICE in gfc_build_array_ref, at fortran/trans.cc:482
  2022-09-14 18:48 [Bug fortran/106944] New: ICE in gfc_build_array_ref, at fortran/trans.cc:482 gscfq@t-online.de
  2022-09-14 18:51 ` [Bug fortran/106944] " gscfq@t-online.de
@ 2022-09-14 19:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-14 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-09-14

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r10-2912-g70570ec192745095.

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

end of thread, other threads:[~2022-09-14 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 18:48 [Bug fortran/106944] New: ICE in gfc_build_array_ref, at fortran/trans.cc:482 gscfq@t-online.de
2022-09-14 18:51 ` [Bug fortran/106944] " gscfq@t-online.de
2022-09-14 19:56 ` marxin 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).