[Bug c/94840] Extern var not defined but compiles
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 29 06:09:21 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94840
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The variable definition inside foo declares an auto (local scope) variable.
The original variable declaration is not used so it is never referenced so
there is no linker failure.
More information about the Gcc-bugs
mailing list