This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Missing explicit instantiations in libstdc++ (was Re:Unreviewed
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: "jason at redhat dot com" <jason at redhat dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 04 Dec 2001 10:08:48 -0800
- Subject: Re: Missing explicit instantiations in libstdc++ (was Re:Unreviewed
--On Tuesday, December 04, 2001 09:45:21 AM -0800 Benjamin Kosnik
<bkoz@redhat.com> wrote:
>
>> You don't fully explain your reasoning. However, this change seems a bit
>> pessimistic. If you want to test implicit instantiation, why not just do
>> it on systems with weak linking semantics and provide the explicit needed
>> when this isn't available? We already have _GLIBCPP_SUPPORTS_WEAK in
>> config.h, so this is trivial to implement.
>
> I leave it to the g++ testsuite to test implicit instantiations. It is
> not the intention of the 22_locale/*.cc tests to deal with instantiations
> of any type. Instead, they should test that custom facets can be compiled
> correctly by the headers.
Agreed; testing implicit instantiation is the province of the compiler,
not the library.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com