> Thanks. With this patch, 'printing' gives a different linker error:

This reduces to a really ugly case when compiling with -fvisibility=hidden.

template<typename T>
struct DEFAULT foo {
  void bar() {}
};
class zed;
template class foo<zed>;
class DEFAULT zed {
};

GCC propagates the DEFAULT in zed, we don't invalidate the visibility
of foo<zed>. I wonder if producing an error in here is not the best
option. I will check what we can do.

>
> Nico

Cheers,
Rafael
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to