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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The decl in question is
 <type_decl 0x7ffff6b8bb48 __lambda0
    type <record_type 0x7ffff6b96348 __lambda0 type_5 type_6 QI
        size <integer_cst 0x7ffff6a09fa8 constant 8>
        unit size <integer_cst 0x7ffff6a09fc0 constant 1>
        align 8 symtab 0 alias set -1 canonical type 0x7ffff6b96348
        fields <type_decl 0x7ffff6b8bbe0 __lambda0 type <record_type
0x7ffff6b963f0 __lambda0>
            nonlocal decl_4 VOID file /aux/hubicka/t.ii line 8 col 6
            align 1 context <record_type 0x7ffff6b96348 __lambda0> result
<record_type 0x7ffff6b96348 __lambda0>
           > context <function_decl 0x7ffff6b8c500 Item>
        full-name "struct Item::~Item()::<lambda()>"
        X() has-type-conversion X(constX&) this=(X&) n_parents=0 use_template=0
interface-unknown
        pointer_to_this <pointer_type 0x7ffff6b96d20> chain <type_decl
0x7ffff6b8bb48 __lambda0>>
    public decl_2 VOID file /aux/hubicka/t.ii line 8 col 6
    align 8 context <function_decl 0x7ffff6b8c500 Item>>

And type which we think to have a linkage is:
 <record_type 0x7ffff6b96348 __lambda0 type_5 QI
    size <integer_cst 0x7ffff6a09fa8 type <integer_type 0x7ffff6a280a8
bitsizetype> constant 8>
    unit size <integer_cst 0x7ffff6a09fc0 type <integer_type 0x7ffff6a28000
sizetype> constant 1>
    align 8 symtab 0 alias set -1 canonical type 0x7ffff6b96348
    fields <type_decl 0x7ffff6b8bbe0 __lambda0
        type <record_type 0x7ffff6b963f0 __lambda0 type_5 QI size <integer_cst
0x7ffff6a09fa8 8> unit size <integer_cst 0x7ffff6a09fc0 1>
            align 8 symtab 0 alias set -1 canonical type 0x7ffff6b96348 fields
<type_decl 0x7ffff6b8bbe0 __lambda0> context <function_decl 0x7ffff6b8c500
Item>
            full-name "struct Item::~Item()::<lambda()>"
            X() has-type-conversion X(constX&) this=(X&) n_parents=0
use_template=0 interface-unknown
            chain <type_decl 0x7ffff6b8bb48 __lambda0>>
        nonlocal decl_4 VOID file /aux/hubicka/t.ii line 8 col 6
        align 1 context <record_type 0x7ffff6b96348 __lambda0> result
<record_type 0x7ffff6b96348 __lambda0>
       > context <function_decl 0x7ffff6b8c500 Item>
    full-name "struct Item::~Item()::<lambda()>"
    X() has-type-conversion X(constX&) this=(X&) n_parents=0 use_template=0
interface-unknown
    pointer_to_this <pointer_type 0x7ffff6b96d20> chain <type_decl
0x7ffff6b8bb48 __lambda0>>

Perhaps we want to mark this as anonymous namespace type?

Reply via email to