Re: Why error "variable previously declared ‘static’ redeclared ‘extern’"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All wrong:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf

Top of page 144.

GCC is basically saying "you said it was static, but here it is extern!" which is a contradiction.

Clang probably doesn't look for it because ... well it's not a common error, perhaps a linker error later in the build, there really is no sensible thing to do if something that is supposed to be static suddenly becomes extern, the two terms are mutually exclusive.

Alec




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux