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

Ville Voutilainen ville.voutilainen@gmail.com
Sun Sep 14 14:55:00 GMT 2014


Tested on Linux-x64.

/cp
2014-09-14  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-14  Ville Voutilainen  <ville.voutilainen@gmail.com>

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


More information about the Gcc-patches mailing list