diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-01-25 21:51:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-01-25 21:51:10 +0100 |
commit | 0e3438689a6ffc4851ba8162306e5a1709b3b905 (patch) | |
tree | f2650b34e22820c5d245ad9ef44382fa36501c9e /gcc/gimplify.c | |
parent | 0d098f4ba1e41740223fe0b5f79462c42703c30b (diff) | |
download | gcc-0e3438689a6ffc4851ba8162306e5a1709b3b905.zip gcc-0e3438689a6ffc4851ba8162306e5a1709b3b905.tar.gz gcc-0e3438689a6ffc4851ba8162306e5a1709b3b905.tar.bz2 |
re PR c++/77914 (Wrong lambda definition accepted)
PR c++/77914
* parser.c (cp_parser_lambda_declarator_opt): Pedwarn with
OPT_Wpedantic on lambda templates for -std=c++14 and higher.
* g++.dg/cpp1y/lambda-generic-77914.C: New test.
* g++.dg/cpp1y/lambda-generic-dep.C: Add -pedantic to dg-options,
expect a warning.
* g++.dg/cpp1y/lambda-generic-x.C: Add -Wpedantic to dg-options,
expect warnings.
* g++.dg/cpp1y/lambda-generic-mixed.C: Add empty dg-options.
* g++.dg/cpp1y/pr59636.C: Likewise.
* g++.dg/cpp1y/pr60190.C: Likewise.
From-SVN: r244907
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions