https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81254
Bug ID: 81254 Summary: DWARF debug info for inlined lexical blocks missing range Product: gcc Version: 7.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: zfigura at codeweavers dot com Target Milestone: --- Created attachment 41652 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41652&action=edit example program An inlined function which contains a lexical block (which in turn contains a variable) generates DW_TAG_lexical_block both in the outer and inner function, however, the range tags (i.e. DW_AT_low_pc and DW_AT_high_pc) are only generated for the outer function. Is this valid behaviour? It confuses some debuggers, which expect range information when reading DW_TAG_lexical_block and don't get it. Could be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51902