r244907 - in /trunk/gcc: cp/ChangeLog cp/parser...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Wed Jan 25 20:51:00 GMT 2017


Author: jakub
Date: Wed Jan 25 20:51:10 2017
New Revision: 244907

URL: https://gcc.gnu.org/viewcvs?rev=244907&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-77914.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-dep.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-mixed.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr59636.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr60190.C



More information about the Gcc-cvs mailing list