This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH, committed] Support lambda templates.


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.


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