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

            Bug ID: 117621
           Summary: [13/14/15 regression] runnable/mangle.d test fails
                    with -g (d21: error: type variant differs by
                    TYPE_PACKED)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-checking, testsuite-fail
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

The runnable/mangle.d test fails with -g with >= GCC 13 (with checking):
```
$ gdc runnable/mangle.d -Irunnable runnable/imports/mangle10077.d -dumpbase -lm
-o ./mangle.exe -g
_D7imports10testmangle12detectMangleFPSQBlQBg6DetectZQq
_D7imports10testmangle__T10DetectTmplTiZQpFNaNbNiNfZv
true
false
In function ‘foo’:
d21: error: type variant differs by TYPE_PACKED
 <record_type 0x70cea83997e0 Bar asm_written cxx-odr-p packed QI
    size <integer_cst 0x70cea8202eb8 type <integer_type 0x70cea821c0a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x70cea8202ed0 type <integer_type 0x70cea821c000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:-1515245248 alias-set -1 canonical-type
0x70cea83997e0 context <function_decl 0x70cea8391d00 foo>
    pointer_to_this <pointer_type 0x70cea8399bd0> chain <type_decl
0x70cea8394390 Bar>>
 <record_type 0x70cea8399930 readonly cxx-odr-p QI
    size <integer_cst 0x70cea8202eb8 type <integer_type 0x70cea821c0a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x70cea8202ed0 type <integer_type 0x70cea821c000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x70cea8399930>
d21: internal compiler error: ‘verify_type’ failed
0x56928a317d47 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:518
0x569288b91884 verify_type(tree_node const*)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.cc:14491
0x56928a50f42a gen_type_die_with_usage
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dwarf2out.cc:26351
0x56928a50e92a gen_type_die
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dwarf2out.cc:26582
0x56928a4c5ba1 gen_decl_die
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dwarf2out.cc:27183
0x56928af10a99 dwarf2out_decl
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dwarf2out.cc:27780
0x56928a4ff634 dwarf2out_early_global_decl
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dwarf2out.cc:27421
0x56928afbab29 lhd_finalize_early_debug()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/langhooks.cc:942
0x56928af5d64c symbol_table::finalize_compilation_unit()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cgraphunit.cc:2580
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to