P0428R2 - familiar template syntax for generic lambdas
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Nov 2017 08:39:57 +0000 (09:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 08:39:57 +0000 (09:39 +0100)
commit7768f20b0a08f8f735de9f4088945023cce0230b
tree601806c349966938a25cfaa78cf75d7cac6770b5
parentd44ed508a66686e0c2fdf48f4cd4a9ad8a1b0547
P0428R2 - familiar template syntax for generic lambdas

P0428R2 - familiar template syntax for generic lambdas
* parser.c (cp_parser_lambda_declarator_opt): Don't pedwarn
for cxx2a and above, reword pedwarn for C++14/C++17.

* g++.dg/cpp1y/lambda-generic-x.C: Adjust warnings and limit
to c++17_down target.
* g++.dg/cpp1y/lambda-generic-dep.C: Likewise.
* g++.dg/cpp1y/lambda-generic-77914.C: Adjust error and limit
to c++17_down target.
* g++.dg/cpp2a/lambda-generic1.C: New test.
* g++.dg/cpp2a/lambda-generic2.C: New test.
* g++.dg/cpp2a/lambda-generic3.C: New test.
* g++.dg/cpp2a/lambda-generic4.C: New test.
* g++.dg/cpp2a/lambda-generic5.C: New test.

From-SVN: r254991
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/lambda-generic-77914.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-dep.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
gcc/testsuite/g++.dg/cpp2a/lambda-generic1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-generic2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-generic3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-generic4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-generic5.C [new file with mode: 0644]