I noticed that gcc uses aliases in, for example:
template<typename T>
struct foobar {
foobar() {
}
};
template struct foobar<void>;clang is currently way too conservative. It only uses aliases when the symbols are strong. It is safe to use aliases to weak symbols, as long and the alias itself is also weak. The attached patch implements that. Cheers, Rafael
t.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
