[cfe-dev] Redeclaration of weak import causes assertion failure

Jordan Rose jordan_rose at apple.com
Mon Jan 7 11:45:42 PST 2013


Hey, Rafael. Somewhere in the last week or so this test case broke:

extern int x __attribute__((availability(macosx,introduced=10.5)));
extern int x;

> Assertion failed: (LV == computeLVForDecl(this, false)), function getLinkageAndVisibility, file /Volumes/Lore/llvm-public/clang/lib/AST/Decl.cpp, line 630.


Note that this still works (or at least, does not assert):

extern int x;
extern int x __attribute__((availability(macosx,introduced=10.5)));

Any ideas?
Jordan



More information about the cfe-dev mailing list