gcc (GCC) 4.5.0 20100322 (experimental) ------------------------------------------------------------------------------- int f (void) { int x; { int y = 1; x = y; } return x; } ------------------------------------------------------------------------------- -c -Wall -g -O2 ------------------------------------------------------------------------------- <1><2d>: Abbrev Number: 2 (DW_TAG_subprogram) <2f> DW_AT_name : f <2><4e>: Abbrev Number: 3 (DW_TAG_variable) <4f> DW_AT_name : x <53> DW_AT_type : <0x59> <57> DW_AT_const_value : 1 ... but neither DW_TAG_lexical_block nor DW_TAG_variable("y")
-- Summary: Missing DW_TAG_lexical_block+DW_TAG_variable Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jan dot kratochvil at redhat dot com GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43479