Re: [PATCH, committed] Support lambda templates.

2013-09-13 Thread Andreas Schwab
FAIL: g++.dg/cpp0x/lambda/lambda-conv4.C (internal compiler error) FAIL: g++.dg/cpp0x/lambda/lambda-conv4.C (test for excess errors) Excess errors: ../gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv4.C: In function ‘void func()’: ../gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv4.C:12:30: internal com

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Adam Butcher
On 13.09.2013 07:17, Adam Butcher wrote: On 12.09.2013 23:44, Andrew MacLeod wrote: On 09/12/2013 06:41 PM, Andrew MacLeod wrote: On 09/12/2013 05:55 PM, Tobias Burnus wrote: Adam Butcher wrote: From: abutcher * lambda.c (lambda_function): Return template result if call operator is

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Adam Butcher
On 12.09.2013 23:44, Andrew MacLeod wrote: On 09/12/2013 06:41 PM, Andrew MacLeod wrote: On 09/12/2013 05:55 PM, Tobias Burnus wrote: Adam Butcher wrote: From: abutcher * lambda.c (lambda_function): Return template result if call operator is a template. I believe that that patch c

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Tobias Burnus
Adam Butcher wrote: From: abutcher * 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 ../../gc

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Andrew MacLeod
On 09/12/2013 06:41 PM, Andrew MacLeod wrote: On 09/12/2013 05:55 PM, Tobias Burnus wrote: Adam Butcher wrote: From: abutcher * 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/lam

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Andrew MacLeod
On 09/12/2013 05:55 PM, Tobias Burnus wrote: Adam Butcher wrote: From: abutcher * 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-c

Re: [PATCH, committed] Support lambda templates.

2013-09-12 Thread Dominique Dhumieres
> Adam Butcher wrote: > From: abutcher > * 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: > ... > PS: I am not positive since I use a patched tree and I haven't bisec

[PATCH, committed] Support lambda templates.

2013-09-12 Thread Adam Butcher
From: abutcher * parser.c (cp_parser_lambda_declarator_opt): Accept template parameter list with std=c++1y or std=gnu++1y. (cp_parser_lambda_body): Don't call 'expand_or_defer_fn' for lambda call operator template to avoid adding template result to symbol table.