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

--- Comment #35 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Pinski from comment #34)
> 
> So no FIELD_DECL as part of fields; only var or type or method_decl?

struct dummy { };
struct true_type { struct dummy i; };

gave:

(gdb) cal debug_tree (type)
 <record_type 0x7ffff1647dc8 true_type type_5 type_6 QI
    size <integer_cst 0x7ffff14e5f90 type <integer_type 0x7ffff14e92a0
bitsizetype> constant 8>
    unit size <integer_cst 0x7ffff14e5fa8 type <integer_type 0x7ffff14e91f8
sizetype> constant 1>
    align 8 symtab 0 alias set -1 canonical type 0x7ffff1647dc8
    fields <field_decl 0x7ffff1645720 i
        type <record_type 0x7ffff1647bd0 dummy type_5 type_6 QI size
<integer_cst 0x7ffff14e5f90 8> unit size <integer_cst 0x7ffff14e5fa8 1>
            align 8 symtab 0 alias set -1 canonical type 0x7ffff1647bd0 fields
<type_decl 0x7ffff1645428 dummy> context <translation_unit_decl 0x7ffff14f1168
D.1>
            full-name "struct dummy"
            X() X(constX&) this=(X&) n_parents=0 use_template=0
interface-unknown
            pointer_to_this <pointer_type 0x7ffff164b348> reference_to_this
<reference_type 0x7ffff164b1f8> chain <type_decl 0x7ffff1645390 dummy>>
        nonlocal decl_3 QI file z.ii line 2 col 33 size <integer_cst
0x7ffff14e5f90 8> unit size <integer_cst 0x7ffff14e5fa8 1>
        align 8 offset_align 128
        offset <integer_cst 0x7ffff14e5e88 constant 0>
        bit offset <integer_cst 0x7ffff14e5ee8 constant 0> context <record_type
0x7ffff1647dc8 true_type>
        chain <type_decl 0x7ffff1645688 true_type type <record_type
0x7ffff1647e70 true_type>
            nonlocal decl_4 VOID file z.ii line 2 col 18
            align 1 context <record_type 0x7ffff1647dc8 true_type> result
<record_type 0x7ffff1647dc8 true_type>
           >> context <translation_unit_decl 0x7ffff14f1168 D.1>
    full-name "struct true_type"
    X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown
    pointer_to_this <pointer_type 0x7ffff164b150> reference_to_this
<reference_type 0x7ffff164f1f8> chain <type_decl 0x7ffff16455f0 true_type>>
(gdb)

Reply via email to