https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86550
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jul 18 21:01:54 2018 New Revision: 262862 URL: https://gcc.gnu.org/viewcvs?rev=262862&root=gcc&view=rev Log: PR c++/86550 * parser.c (cp_parser_decl_specifier_seq): Diagnose invalid type specifier if CP_PARSER_FLAGS_ONLY_MUTABLE_OR_CONSTEXPR. * g++.dg/cpp0x/lambda/lambda-86550.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-86550.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog