public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391
@ 2021-06-16 17:23 gscfq@t-online.de
  2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2021-06-16 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101101
           Summary: ICE in gfc_build_array_type, at
                    fortran/trans-types.c:1391
           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: ---

Test case in addition to pr99138, pr99254 and pr99266,
affects versions down to at least r5 :


$ cat z1.f90
subroutine s(x)
   type t
   end type
   class(t) :: x
   dimension :: x(:)
end


$ gfortran-12-20210613 -c z1.f90
z1.f90:1:12:

    1 | subroutine s(x)
      |            1
internal compiler error: Segmentation fault
0xc7bfff crash_signal
        ../../gcc/toplev.c:327
0x82022a gfc_build_array_type
        ../../gcc/fortran/trans-types.c:1391
0x82222e gfc_get_derived_type(gfc_symbol*, int)
        ../../gcc/fortran/trans-types.c:2791
0x8229d8 gfc_typenode_for_spec(gfc_typespec*, int)
        ../../gcc/fortran/trans-types.c:1170
0x822c2e gfc_sym_type(gfc_symbol*)
        ../../gcc/fortran/trans-types.c:2281
0x821174 gfc_get_function_type(gfc_symbol*, gfc_actual_arglist*, char const*)
        ../../gcc/fortran/trans-types.c:3126
0x7bac44 build_function_decl
        ../../gcc/fortran/trans-decl.c:2386
0x7c0836 gfc_create_function_decl(gfc_namespace*, bool)
        ../../gcc/fortran/trans-decl.c:3085
0x7c6e26 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6787
0x74c876 translate_all_program_units
        ../../gcc/fortran/parse.c:6461
0x74c876 gfc_parse_file()
        ../../gcc/fortran/parse.c:6730
0x798bbf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2023-03-06 17:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 17:23 [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391 gscfq@t-online.de
2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
2022-01-26 17:23 ` gscfq@t-online.de
2023-03-06 17:15 ` anlauf 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).