externs and thread local storage
Gary Funck
gary@intrepid.com
Sun Jul 2 21:55:00 GMT 2006
Pinski wrote:
> What about the following two sources:
> char t;
> ---
> extern int t;
> What should happen? According to the C standard this is invalid code but
> the compiler does not need to diagnose the problem.
Yup. Certainly a great way to re-use space across separately compiled
"C" source files (ala Fortran's blank common). <g>
I can see where the compiler is within its rights to issue
a warning above, or even a pedantic error.
More information about the Gcc
mailing list