[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...
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Mon Jan 24 09:24:24 PST 2011
On 11-01-24 12:17 PM, Douglas Gregor wrote:
>
> On Jan 24, 2011, at 9:08 AM, Renato Golin wrote:
>
>> On 01/24/11 16:40, Rafael Ávila de Espíndola wrote:
>>> I remember asking this before, but I cannot remember the answer. Is it
>>> valid for a program to have multiple explicit template instantiations
>>> with the same arguments?
>>
>> Nope: paragraph 14.7.5
>
> 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.
Ah, so it is not legal to have multiple explicit instantiations, but it
is not required to always have an explicit instantiation declaration in
context?
> - Doug
Thanks,
Rafael
More information about the cfe-commits
mailing list