public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/107595] New: ICE in ix86_push_argument, at config/i386/i386.cc:4335
@ 2022-11-09 17:55 gscfq@t-online.de
  2022-11-09 21:17 ` [Bug fortran/107595] [13 Regression] " hjl.tools at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2022-11-09 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107595
           Summary: ICE in ix86_push_argument, at config/i386/i386.cc:4335
           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: ---

Affects versions down to at least r5 :
(GNU Extension: Old-style initialization )


$ cat z1.f90
program p
   type t
      integer :: a
      integer, pointer :: b
   end type
   type(t) x /t(4, null())/
   print *, x%b
end


$ cat z2.f90
program p
   type t
      integer :: a
      integer, pointer :: b
   end type
   type(t) :: x = t(4, null())
   print *, x%b
end


$ gfortran-13-20221106 -c z2.f90
$
$ gfortran-13-20221106 -c z1.f90
z1.f90:8:3:

    8 | end
      |   ^
internal compiler error: Segmentation fault
0xf4697f crash_signal
        ../../gcc/toplev.cc:314
0x134e81d ix86_push_argument
        ../../gcc/config/i386/i386.cc:4335
0x9bcce3 expand_call(tree_node*, rtx_def*, int)
        ../../gcc/calls.cc:2688
0xb1cb29 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.cc:11868
0x13138ac expand_expr
        ../../gcc/expr.h:310
0x13138ac output_constant
        ../../gcc/varasm.cc:5250
0x1314d97 output_constant
        ../../gcc/varasm.cc:5158
0x1314d97 output_constructor_regular_field
        ../../gcc/varasm.cc:5545
0x1314d97 output_constructor
        ../../gcc/varasm.cc:5812
0x1316ba9 output_constant
        ../../gcc/varasm.cc:5158
0x1316ba9 assemble_variable_contents
        ../../gcc/varasm.cc:2231
0x13218dc assemble_variable(tree_node*, int, int, int)
        ../../gcc/varasm.cc:2410
0x1324f84 varpool_node::assemble_decl()
        ../../gcc/varpool.cc:596
0xa2b037 output_in_order
        ../../gcc/cgraphunit.cc:2151
0xa2b037 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2355
0xa2e97f symbol_table::compile()
        ../../gcc/cgraphunit.cc:2546
0xa2e97f symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2543

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

end of thread, other threads:[~2022-11-17 21:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 17:55 [Bug fortran/107595] New: ICE in ix86_push_argument, at config/i386/i386.cc:4335 gscfq@t-online.de
2022-11-09 21:17 ` [Bug fortran/107595] [13 Regression] " hjl.tools at gmail dot com
2022-11-09 22:28 ` kargl at gcc dot gnu.org
2022-11-09 22:29 ` kargl at gcc dot gnu.org
2022-11-10  7:25 ` rguenth at gcc dot gnu.org
2022-11-10 19:11 ` anlauf at gcc dot gnu.org
2022-11-10 19:12 ` [Bug fortran/107595] " pinskia at gcc dot gnu.org
2022-11-17 21:29 ` 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).