https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549
--- Comment #4 from Cristian Assaiante ---
We have tested also multiple versions of gdb.
With versions 9.2 and 11.2 we have the same behavior: variable i is visible for
gcc4 and gcc7 and not visible for more recent gcc versions.
With version 10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549
--- Comment #3 from Cristian Assaiante ---
I have tested multiple older gcc versions (4.3, 7.5, 9.4, 11.2) and apparently
the variable is visible in 4.3 and 7.5.
The asm for the main function of the binary from gcc7.5:
main:
.LFB1:
# a.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549
Jakub Jelinek changed:
What|Removed |Added
CC||aoliva at gcc dot gnu.org
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104549
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #1