[cfe-commits] r85669 - in /cfe/trunk: lib/Sema/Sema.h lib/Sema/SemaTemplateInstantiate.cpp lib/Sema/SemaTemplateInstantiateDecl.cpp test/SemaTemplate/instantiate-non-type-template-parameter.cpp test/SemaTemplate/member-template-access-expr.cpp

Chris Lattner clattner at apple.com
Sat Oct 31 12:31:27 PDT 2009


nice!

On Oct 31, 2009, at 11:10 AM, Douglas Gregor wrote:

>
> On Oct 31, 2009, at 10:56 AM, Chris Lattner wrote:
>
>>
>> On Oct 31, 2009, at 10:21 AM, Douglas Gregor wrote:
>>
>>> Author: dgregor
>>> Date: Sat Oct 31 12:21:17 2009
>>> New Revision: 85669
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=85669&view=rev
>>> Log:
>>> Implement "incremental" template instantiation for non-type template
>>> parameters and template type parameters, which occurs when
>>> substituting into the declarations of member templates inside class
>>> templates. This eliminates errors about our inability to "reduce
>>> non-type template parameter depth", fixing PR5311.
>>>
>>> Also fixes a bug when instantiating a template type parameter
>>> declaration in a member template, where we weren't properly reducing
>>> the template parameter's depth.
>>>
>>> LLVM's StringSwitch header now parses.
>>
>> Nice, out of curiosity, does the simple example that uses it codegen?
>
>
> Yup, and it runs like a champ. Test program attached; make sure to  
> link with -lstdc++.
>
> 	- Doug
>
> <ss.cpp>




More information about the cfe-commits mailing list