http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47193
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-06 18:34:31 UTC --- ----- testcase2.c ----- 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: $ gcc testcase2.c testcase2.c:6:1: internal compiler error: in function_and_variable_visibility, at ipa.c:857 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.