[PATCH, committed] Support lambda templates.

Andrew MacLeod amacleod@redhat.com
Thu Sep 12 23:02:00 GMT 2013


On 09/12/2013 05:55 PM, Tobias Burnus wrote:
> Adam Butcher wrote:
>> From: abutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
>>     * lambda.c (lambda_function): Return template result if call 
>> operator is
>>     a template.
>
> I believe that that patch causes the following build failure of 
> cp/lambda.c:
>
> In file included from ../../gcc/tree-core.h:27:0,
>                  from ../../gcc/tree.h:23,
>                  from ../../gcc/cp/lambda.c:27:
> ../../gcc/vec.h: In function 'void maybe_add_lambda_conv_op(tree)':
> ../../gcc/vec.h:626:44: error: 'direct_argvec' may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
>  vec_safe_space (const vec<T, A, vl_embed> *v, unsigned nelems)
>                                             ^
> ../../gcc/cp/lambda.c:795:21: note: 'direct_argvec' was declared here
>    vec<tree, va_gc> *direct_argvec;
>
>
> Tobias
>
> PS: I am not positive since I use a patched tree and I haven't bisected.
I have verified that is the patch set causing the same issue for me.  I 
backed out that revision  and everything is fine.

Andrew



More information about the Gcc-patches mailing list