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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
We end with:

(gdb) bt
#0  0x000000000084a2d3 in tree_check (__t=0x0, __f=0x171bb40
"/home/marxin/Programming/gcc/gcc/ipa-devirt.c", __l=1006, __g=0x171c128
"warn_types_mismatch", __c=IDENTIFIER_NODE) at
/home/marxin/Programming/gcc/gcc/tree.h:3219
#1  0x0000000000a74c9c in warn_types_mismatch (t1=0x7ffff789edc8,
t2=0x7ffff74aa1f8, loc1=245888, loc2=491776) at
/home/marxin/Programming/gcc/gcc/ipa-devirt.c:1006
#2  0x00000000007ebaed in lto_symtab_merge_decls_2 (diagnosed_p=<optimized
out>, first=<optimized out>) at /home/marxin/Programming/gcc/gcc/tree.h:3335
#3  lto_symtab_merge_decls_1 (first=<optimized out>) at
/home/marxin/Programming/gcc/gcc/lto/lto-symtab.c:861
#4  lto_symtab_merge_decls () at
/home/marxin/Programming/gcc/gcc/lto/lto-symtab.c:887
#5  0x00000000007f7679 in read_cgraph_and_symbols (nfiles=<optimized out>,
fnames=<optimized out>) at
/home/marxin/Programming/gcc/gcc/lto/lto-common.c:2839
#6  0x00000000007dde83 in lto_main () at
/home/marxin/Programming/gcc/gcc/lto/lto.c:616
#7  0x0000000000c90f20 in compile_file () at
/home/marxin/Programming/gcc/gcc/toplev.c:456
#8  0x00000000007b6318 in do_compile () at
/home/marxin/Programming/gcc/gcc/toplev.c:2188
#9  toplev::main (this=this@entry=0x7fffffffda4e, argc=<optimized out>,
argc@entry=17, argv=<optimized out>, argv@entry=0x7fffffffdb48) at
/home/marxin/Programming/gcc/gcc/toplev.c:2323
#10 0x00000000007b9e3f in main (argc=17, argv=0x7fffffffdb48) at
/home/marxin/Programming/gcc/gcc/main.c:39

$ (gdb) p debug_tree(t1)
 <record_type 0x7ffff789edc8 cxx-odr-p BLK
    size <integer_cst 0x7ffff789c558 type <integer_type 0x7ffff76b60a8
bitsizetype> constant 2432>
    unit-size <integer_cst 0x7ffff775df18 type <integer_type 0x7ffff76b6000
sizetype> constant 304>
    align:64 warn_if_not_align:0 symtab:0 alias-set 5 canonical-type
0x7ffff789edc8
    fields <field_decl 0x7ffff74a3688 AlphaDriver
        type <real_type 0x7ffff76bd348 double DF
            size <integer_cst 0x7ffff76a1ba0 constant 64>
            unit-size <integer_cst 0x7ffff76a1bb8 constant 8>
            align:64 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff76bd348 precision:64
            pointer_to_this <pointer_type 0x7ffff76bd888>>
        nonlocal DF pr91222.ii:3:10 size <integer_cst 0x7ffff76a1ba0 64>
unit-size <integer_cst 0x7ffff76a1bb8 8>
        align:64 warn_if_not_align:0 offset_align 128
        offset <integer_cst 0x7ffff76a1bd0 constant 0>
        bit-offset <integer_cst 0x7ffff76a1c18 constant 0> context <record_type
0x7ffff789edc8>
        chain <field_decl 0x7ffff74a8098 BetaDriver type <real_type
0x7ffff76bd348 double>
            nonlocal DF pr91222.ii:4:10 size <integer_cst 0x7ffff76a1ba0 64>
unit-size <integer_cst 0x7ffff76a1bb8 8>
            align:64 warn_if_not_align:0 offset_align 128 offset <integer_cst
0x7ffff76a1bd0 0> bit-offset <integer_cst 0x7ffff76a1ba0 64> context
<record_type 0x7ffff789edc8> chain <field_decl 0x7ffff74a3720 EpsDiss>>>
context <translation_unit_decl 0x7ffff76ab168 pr91222.ii>>
$3 = void
(gdb) p debug_tree(t2)
 <record_type 0x7ffff74aa1f8 cxx-odr-p BLK
    size <integer_cst 0x7ffff789c558 type <integer_type 0x7ffff76b60a8
bitsizetype> constant 2432>
    unit-size <integer_cst 0x7ffff775df18 type <integer_type 0x7ffff76b6000
sizetype> constant 304>
    align:64 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7ffff74aa1f8
    fields <field_decl 0x7ffff74a9be0 AlphaDriver
        type <real_type 0x7ffff76bd348 double DF
            size <integer_cst 0x7ffff76a1ba0 constant 64>
            unit-size <integer_cst 0x7ffff76a1bb8 constant 8>
            align:64 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff76bd348 precision:64
            pointer_to_this <pointer_type 0x7ffff76bd888>>
        nonlocal DF pr91222-2.ii:3:10 size <integer_cst 0x7ffff76a1ba0 64>
unit-size <integer_cst 0x7ffff76a1bb8 8>
        align:64 warn_if_not_align:0 offset_align 128
        offset <integer_cst 0x7ffff76a1bd0 constant 0>
        bit-offset <integer_cst 0x7ffff76a1c18 constant 0> context <record_type
0x7ffff74aa1f8>
        chain <field_decl 0x7ffff74ab558 BetaDriver type <real_type
0x7ffff76bd348 double>
            nonlocal DF pr91222-2.ii:4:10 size <integer_cst 0x7ffff76a1ba0 64>
unit-size <integer_cst 0x7ffff76a1bb8 8>
            align:64 warn_if_not_align:0 offset_align 128 offset <integer_cst
0x7ffff76a1bd0 0> bit-offset <integer_cst 0x7ffff76a1ba0 64> context
<record_type 0x7ffff74aa1f8> chain <field_decl 0x7ffff74a9c78 EpsDiss>>>
context <translation_unit_decl 0x7ffff76ab1e0 pr91222-2.ii>
    pointer_to_this <pointer_type 0x7ffff74aa2a0>>

$ (gdb) p n1
$5 = (tree) 0x0
(gdb) p n2
$6 = (tree) 0x0

Reply via email to