https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107414
Bug ID: 107414 Summary: dwarf 5 C macro support Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take this code: union node { struct { int a; } l; } x; #define memory l.a int main() { return x.memory; } When compiled with -gdwarf-4 -g3 and run in gdb, it is possible to use Breakpoint 1, main () at u.c:11 11 return x.memory; (gdb) p x.memory $1 = 0 When instead -gdwarf-5 -g3 is used 'memory' is not known to be a macro and one gets Breakpoint 1, main () at u.c:11 11 return x.memory; (gdb) p x.memory There is no member named memory. Shouldn't the Dwarf 5 data be a superset of what Dwarf 4 provides? This is not new in the trunk/13 version. 12.1 fails as well and likely prior versions, too.