public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95543] New: ICE in is_CFI_desc, at fortran/expr.c:1080
@ 2020-06-04 18:15 gscfq@t-online.de
  2020-06-06 16:08 ` [Bug fortran/95543] [PDT] " kargl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2020-06-04 18:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95543
           Summary: ICE in is_CFI_desc, at fortran/expr.c:1080
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

This started with r8, before 20180525 :


$ cat z1.f90
program p
   type t(a, b)
      integer, kind :: a = 4
      integer, kind :: b = a + 4
   end type
   type(t()) :: z
   print *, z
end


$ cat z2.f90
program p
   type t(a, b)
      integer, kind :: a = 1
      integer, kind :: b = a
   end type
   type(t) :: z
   print *, z
end


$ cat z3v.f90
program p
   type t(a, b)
      integer, kind :: a = 1
      integer, kind :: b = a
   end type
   type(t(4)) :: z
   print *, z
end


$ cat z4v.f90
program p
   type t(a, b)
      integer, kind :: a = 4
      integer, kind :: b = a + 4
   end type
   type(t(b=6)) :: z
   print *, z
end


$ gfortran-11-20200531 -c z1.f90
z1.f90:8:0:

    8 | end
      |
internal compiler error: Segmentation fault
0xbc37bf crash_signal
        ../../gcc/toplev.c:328
0x65843b is_CFI_desc(gfc_symbol*, gfc_expr*)
        ../../gcc/fortran/expr.c:1080
0x7268d8 gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1555
0x735e68 gfc_conv_variable
        ../../gcc/fortran/trans-expr.c:2734
0x73207a gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8690
0x7321d2 gfc_conv_expr_op
        ../../gcc/fortran/trans-expr.c:3626
0x7321d2 gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8678
0x734ed3 gfc_conv_expr_val(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8735
0x735020 gfc_conv_expr_type(gfc_se*, gfc_expr*, tree_node*)
        ../../gcc/fortran/trans-expr.c:8749
0x7167c3 structure_alloc_comps
        ../../gcc/fortran/trans-array.c:9491
0x719a66 gfc_allocate_pdt_comp(gfc_symbol*, tree_node*, int,
gfc_actual_arglist*)
        ../../gcc/fortran/trans-array.c:9879
0x728a30 gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../gcc/fortran/trans-decl.c:4670
0x72ae08 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6945
0x6b25e6 translate_all_program_units
        ../../gcc/fortran/parse.c:6306
0x6b25e6 gfc_parse_file()
        ../../gcc/fortran/parse.c:6545
0x6fdfff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:210

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

end of thread, other threads:[~2023-06-30  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 18:15 [Bug fortran/95543] New: ICE in is_CFI_desc, at fortran/expr.c:1080 gscfq@t-online.de
2020-06-06 16:08 ` [Bug fortran/95543] [PDT] " kargl at gcc dot gnu.org
2020-06-06 16:34 ` kargl at gcc dot gnu.org
2020-06-06 17:13 ` sgk at troutmask dot apl.washington.edu
2020-06-06 17:32 ` sgk at troutmask dot apl.washington.edu
2023-06-30  8:16 ` pault 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).