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]

Re: templated cmath function instantiation


On Mon, Jun 25, 2001 at 08:49:17PM +0200, Gabriel Dos Reis wrote:
> Phil Edwards <pedwards@disaster.jaj.com> writes:
> | (Actually, we ought to be making a run of the entire testsuite with
> | -fno-implicit-templates turned on; that would've caught this earlier.)
> 
> Frankly, I don't like end-user use of that flag with the library and I
> would not recommand its popularization ; this is just yet another
> case where lack of 'export' support sucks :-(

Well, if you want to provide somewhat larger C++ libraries, you need to be
able to control which templates are intantiated and are part of which of
your libraries. Explicit instantiation with -fno-implicit-templates is a
working way to do so. 
(The deprecated -fexternal-templates being another one. I'll oppose to
anyone who would want to eliminate this pragma based mechanism before there
is a completely working -frepo.)

Thanks for addressing the issue!

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE GmbH, Nuernberg, FRG                               SCSI, Security

PGP signature


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