On 15 September 2014 18:51, Jason Merrill wrote:
> On 09/14/2014 10:55 AM, Ville Voutilainen wrote:
>>
>> * g++.dg/cpp0x/lambda/lambda-defarg.C: Enable in c++11_only.
>> * g++.dg/cpp1y/lambda-defarg.C: New.
>
>
> Instead of adding a second test, make only the dg-error c++11_only.
Ok.
On 09/14/2014 10:55 AM, Ville Voutilainen wrote:
* g++.dg/cpp0x/lambda/lambda-defarg.C: Enable in c++11_only.
* g++.dg/cpp1y/lambda-defarg.C: New.
Instead of adding a second test, make only the dg-error c++11_only.
Jason
Tested on Linux-x64.
/cp
2014-09-14 Ville Voutilainen
Do not diagnose lambda default arguments in c++14 modes.
* parser.c (cp_parser_lambda_declarator_opt): Make the pedwarn conditional.
/testsuite
2014-09-14 Ville Voutilainen
Do not diagnose lambda default arguments in c++14