This is the mail archive of the gcc-patches@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]

Re: [v3] _GLIBCPP_EXTERN_TEMPLATE


On 13 Feb 2003 23:48:45 +0100
Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:

>Humm, I can't see how this introduces an ODR violation.  All it does
>is to defer the point of the "real" instantiation.  If one finds an
>ODR violation with that feature then the ODR violation is already
>present in the non-extern template version, I believe.

True, sorry for the confusion. I should have said: casual use of this,
while still erroneously liking to libstdc++.[a, so] which also contains
definitions of static data, for instance, will result in multiple
definition errors at link time.

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]