[C++14 PATCH] Do not diagnose lambda default arguments in c++14 modes.

Ville Voutilainen ville.voutilainen@gmail.com
Mon Sep 15 16:40:00 GMT 2014


On 15 September 2014 18:51, Jason Merrill <jason@redhat.com> 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.

/cp
2014-09-15  Ville Voutilainen  <ville.voutilainen@gmail.com>

        Do not diagnose lambda default arguments in c++14 modes.
        * parser.c (cp_parser_lambda_declarator_opt): Make the pedwarn
conditional.

/testsuite
2014-09-15  Ville Voutilainen  <ville.voutilainen@gmail.com>

        Do not diagnose lambda default arguments in c++14 modes.
        * g++.dg/cpp0x/lambda/lambda-defarg.C: dg-error in c++11_only.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lambda-defarg-cxx14.patch
Type: text/x-patch
Size: 1029 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140915/58887447/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lambda-defarg-cxx14.changelog
Type: application/octet-stream
Size: 397 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140915/58887447/attachment.obj>


More information about the Gcc-patches mailing list