This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
[#pragma visibility affecting explicit instantiations]
A consequence of this is that if a user instantiates a template that they don't 'own' (that is, a template from a different module), they must make sure that no #pragma is in effect, because the other module may have a specific idea about what visibility should be used.
I'm not sure how exactly they can do this. Is there a visibility pragma for "no setting"?
It seems like this would be a common enough mistake that there should be a way to get a warning about it.
In the traditional declaration/definition model, if you try to change the linkage of something you get an error...
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |