https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124026
Bug ID: 124026
Summary: Test gdc.test/compilable/issue19163.d ICEs since
r16-7272-g9d9663ea153
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: testsuite-fail
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: stefansf at gcc dot gnu.org
Target Milestone: ---
Target: s390*-*-*
Starting with r16-7272-g9d9663ea153 compiling new test issue19163.d ICEs:
$ /gcc/build/gcc/testsuite/gdc/../../gdc -B/gcc/build/gcc/testsuite/gdc/../../
compilable/issue19163.d -fdiagnostics-plain-output
-I/gcc/build/s390x-ibm-linux-gnu/./libphobos/libdruntime
-I/gcc/src/gcc/testsuite/../../libphobos/libdruntime
-I/gcc/src/gcc/testsuite/../../libphobos/src -Icompilable -S -o issue19163.s
during RTL pass: final
compilable/issue19163.d: In function 'getNamedAttribute':
compilable/issue19163.d:9:1: internal compiler error: in output_constant, at
varasm.cc:5662
0x4aee159 internal_error(char const*, ...)
/gcc/src/gcc/diagnostic-global-context.cc:787
0x4b01955 fancy_abort(char const*, int, char const*)
/gcc/src/gcc/diagnostics/context.cc:1812
0x3415a53 output_constant
/gcc/src/gcc/varasm.cc:5662
0x3416bff output_constructor_regular_field
/gcc/src/gcc/varasm.cc:5906
0x3417acd output_constructor
/gcc/src/gcc/varasm.cc:6172
0x3415a7d output_constant
/gcc/src/gcc/varasm.cc:5663
0x340bcf3 assemble_constant_contents
/gcc/src/gcc/varasm.cc:3911
0x340c4df output_constant_def_contents
/gcc/src/gcc/varasm.cc:3956
0x340f583 mark_constants_in_pattern
/gcc/src/gcc/varasm.cc:4520
0x340f731 mark_constants
/gcc/src/gcc/varasm.cc:4552
0x340f795 mark_constant_pool
/gcc/src/gcc/varasm.cc:4568
0x341075b output_constant_pool
/gcc/src/gcc/varasm.cc:4785
0x3402943 assemble_start_function(tree_node*, char const*)
/gcc/src/gcc/varasm.cc:2101
0x2472ce1 rest_of_handle_final
/gcc/src/gcc/final.cc:4268
0x24733a1 execute
/gcc/src/gcc/final.cc:4350
/gcc/build/gcc/testsuite/gdc/../../d21 compilable/issue19163.d -quiet -dumpbase
issue19163.d -dumpbase-ext .d -mzarch -march=arch15 -m64
-fdiagnostics-color=never -fdiagnostics-urls=never -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-path-format=separate-events
-fdiagnostics-text-art-charset=none -fno-diagnostics-show-event-links
-fno-diagnostics-show-nesting -o issue19163.s -iprefix
/gcc/build/gcc/../lib/gcc/s390x-ibm-linux-gnu/16.0.1/ -isystem
/gcc/build/gcc/testsuite/gdc/../../include -isystem
/gcc/build/gcc/testsuite/gdc/../../include-fixed -I
/gcc/build/s390x-ibm-linux-gnu/./libphobos/libdruntime -I
/gcc/src/gcc/testsuite/../../libphobos/libdruntime -I
/gcc/src/gcc/testsuite/../../libphobos/src -I compilable
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Breakpoint 1, output_constant (exp=0x3fff7957ae0, size=16, align=64,
reverse=false, merge_strings=false) at /gcc/src/gcc/varasm.cc:5449
5449 if (size == 0 || flag_syntax_only)
(gdb) call debug_tree(exp)
<nop_expr 0x3fff7957ae0
type <record_type 0x3fff797e1f8 int delegate() type_4 TI
size <integer_cst 0x3fff78029c0 constant 128>
unit-size <integer_cst 0x3fff78029d8 constant 16>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x3fff797e1f8
fields <field_decl 0x3fff79655a0 ptr type <pointer_type 0x3fff7816000>
unsigned DI <built-in>:0:0
size <integer_cst 0x3fff7802978 constant 64>
unit-size <integer_cst 0x3fff7802990 constant 8>
align:64 warn_if_not_align:0 offset_align 64 decl_not_flexarray: 0
offset <integer_cst 0x3fff78029a8 constant 0>
bit-offset <integer_cst 0x3fff78029f0 constant 0> context
<record_type 0x3fff797e1f8 int delegate()> chain <field_decl 0x3fff7965640
funcptr>>
chain <type_decl 0x3fff79656e0 int delegate()>>
constant
arg:0 <addr_expr 0x3fff7957ac0
type <pointer_type 0x3fff7991930 type <function_type 0x3fff797e000>
unsigned DI size <integer_cst 0x3fff7802978 64> unit-size
<integer_cst 0x3fff7802990 8>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x3fff7991930>
constant static
arg:0 <function_decl 0x3fff798e900 __lambda_L13_C20 type <function_type
0x3fff797e000>
addressable used public static weak QI
compilable/issue19163.d:13:20 align:64 warn_if_not_align:0 context <record_type
0x3fff79911f8 TestStruct> initial <block 0x3fff7963340> result <result_decl
0x3fff79904
00 D.2421>
(mem:QI (symbol_ref/i:DI
("_D10issue1916310TestStruct16__lambda_L13_C20FNaNbNiNfZi") [flags 0x3]
<function_decl 0x3fff798e900 __lambda_L13_C20>) [0 S1 A8])
struct-function 0x3fff7fc7410>
compilable/issue19163.d:13:20 start: compilable/issue19163.d:13:20
finish: compilable/issue19163.d:13:20>
compilable/issue19163.d:13:20 start: compilable/issue19163.d:13:20 finish:
compilable/issue19163.d:13:20>
We ICE for:
5531 switch (code)
(gdb)
5662 gcc_assert (TREE_CODE (exp) == CONSTRUCTOR);
(gdb) print TREE_CODE (exp)
$3 = NOP_EXPR