[Bug c/94840] Extern var not defined but compiles

dudu.arbel at ilrd dot co.il gcc-bugzilla@gcc.gnu.org
Wed Apr 29 07:44:19 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94840

Dudu <dudu.arbel at ilrd dot co.il> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #2 from Dudu <dudu.arbel at ilrd dot co.il> ---
(In reply to Andrew Pinski from comment #1)
> 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.

right. thanks


More information about the Gcc-bugs mailing list