Do not diagnose lambda default arguments in c++14 modes.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 15 Sep 2014 19:31:35 +0000 (22:31 +0300)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 15 Sep 2014 19:31:35 +0000 (15:31 -0400)
commit6a3d8ef0b86f81b7eb72a29b3d5339f5062a8453
tree650a46bd061d784abf874573183e531f45f1c78c
parent717c478953c6ba2bd82e8ffba4b79d17dbf75626
Do not diagnose lambda default arguments in c++14 modes.

* parser.c (cp_parser_lambda_declarator_opt): Make the pedwarn
conditional.

From-SVN: r215274
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg.C