public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/105184] New: ICE in gfc_array_init_size, at fortran/trans-array.cc:5841
@ 2022-04-06 18:20 gscfq@t-online.de
  2022-04-06 18:21 ` [Bug fortran/105184] " gscfq@t-online.de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2022-04-06 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105184
           Summary: ICE in gfc_array_init_size, at
                    fortran/trans-array.cc:5841
           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: ---

Affects versions down to at least r5 :


$ cat z1.f90
program p
   real, allocatable :: x[:,:]
   integer :: n = 2
   allocate (x[::n, *])
end


$ gfortran-12-20220403 -c z1.f90 -fcoarray=single
z1.f90:4:23:

    4 |    allocate (x[::n, *])
      |                       1
internal compiler error: in gfc_array_init_size, at fortran/trans-array.cc:5841
0x7b4647 gfc_array_init_size
        ../../gcc/fortran/trans-array.cc:5841
0x7b4647 gfc_array_allocate(gfc_se*, gfc_expr*, tree_node*, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, gfc_expr*, tree_node*, bool)
        ../../gcc/fortran/trans-array.cc:6119
0x829de6 gfc_trans_allocate(gfc_code*)
        ../../gcc/fortran/trans-stmt.cc:6741
0x7ab8c7 trans_code
        ../../gcc/fortran/trans.cc:2088
0x7d4b7e gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7654
0x75734e translate_all_program_units
        ../../gcc/fortran/parse.cc:6669
0x75734e gfc_parse_file()
        ../../gcc/fortran/parse.cc:6956
0x7a47df gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

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

end of thread, other threads:[~2022-04-12 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 18:20 [Bug fortran/105184] New: ICE in gfc_array_init_size, at fortran/trans-array.cc:5841 gscfq@t-online.de
2022-04-06 18:21 ` [Bug fortran/105184] " gscfq@t-online.de
2022-04-06 19:09 ` anlauf at gcc dot gnu.org
2022-04-06 20:03 ` anlauf at gcc dot gnu.org
2022-04-06 20:40 ` anlauf at gcc dot gnu.org
2022-04-10 18:28 ` cvs-commit at gcc dot gnu.org
2022-04-10 18:34 ` anlauf at gcc dot gnu.org
2022-04-12 17:23 ` gscfq@t-online.de

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