https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61463
Bug ID: 61463
Summary: g++ does not emit DW_AT_mutable
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tromey at gcc dot gnu.org
DW_AT_mutable is defined by DWARF but g++ does not seem to emit it.
I tried
struct K
{
mutable int x;
};
K k;
For "x" I see:
<2><23>: Abbrev Number: 3 (DW_TAG_member)
<24> DW_AT_name : x
<26> DW_AT_decl_file : 1
<27> DW_AT_decl_line : 3
<28> DW_AT_type : <0x2e>
<2c> DW_AT_data_member_location: 0