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

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-06 18:52:28 UTC 
---
> typedef int vtype;
> static vtype Wv10a __attribute__((weakref ("Wv10b")));
> static vtype Wv10b __attribute__((weakref ("Wv10c")));
> static vtype Wv10c __attribute__((weakref ("Wv10d")));
> static vtype Wv10d __attribute__((weakref ("wv10")));
> extern vtype wv10;
> -----------------------
> 
> Is this also invalid? It fails the same way:
No idea,  I think the aliased symbol should always be external one, but the
sanity check
might be overactive here (the weakref code seems to be skipping transparent
aliases,
so it should be equivalent of aliasing Wv10 in all cases).

Honza

Reply via email to