https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94469
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Do you know under which circumstances gdb asks which symbol to print? Because I've never seen this for C or C++ and it should be present for _all_ global variables when LTO is used and your analysis is correct. Or does Ada somehow not have variable shadowing and for C and C++ gdb implements shadowing rules, picking the "last" instance?