[cfe-commits] r124089 - in /cfe/trunk: lib/CodeGen/CGRTTI.cpp lib/CodeGen/CodeGenModule.cpp test/CodeGenCXX/exceptions-no-rtti.cpp test/CodeGenCXX/key-function-vtable.cpp test/CodeGenCXX/mangle-subst-std.cpp test/CodeGenCXX/rtti-linkage.cpp test/Co...

Renato Golin Renato.Golin at arm.com
Mon Jan 24 09:24:10 PST 2011


On 01/24/11 17:17, Douglas Gregor wrote:
> You are technically correct, but the prohibition of multiple explicit
> template instantiations is almost useless in practice, because there
> still may be any number of implicit template instantiations with the
> same arguments.

But by priority rules, explicit instantiation takes precedence over
implicit ones. If you have multiple implicit and one explicit, you'll
always take the explicit one.

However, if you have multiple implicit (and not any explicit) or
multiple explicit ones, that's an ill-formed program.

cheers,
--renato

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.





More information about the cfe-commits mailing list