------- Comment #9 from geoffk at gcc dot gnu dot org  2009-09-26 12:15 -------
(In reply to comment #8)
> Hm, I only can see references to "symbol" not to either function or variable
> declaration in the documentation.  Can you cite the part that makes you think
> it restricts the use to functions?

It's documented in the section on function attributes, but not listed in the
section on variable attributes.  Compare 'deprecated' or 'weak', which are
listed in both places.

It does say 'symbol' in referring to the target, but I doubt it's really
supposed to mean that you can declare a function as a weakref to a variable
(and that couldn't work anyway on most platforms, the variable will be in a
non-executable region of memory).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25140

Reply via email to