https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90842
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 16:55:06 2019 New Revision: 279649 URL: https://gcc.gnu.org/viewcvs?rev=279649&root=gcc&view=rev Log: Backported from mainline 2019-11-21 Jakub Jelinek <ja...@redhat.com> Jason Merrill <ja...@redhat.com> PR c++/90842 * parser.c (cp_parser_decl_specifier_seq): For concept or typedef break early if CP_PARSER_FLAGS_ONLY_MUTABLE_OR_CONSTEXPR. For type specifiers, set CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS if CP_PARSER_FLAGS_ONLY_MUTABLE_OR_CONSTEXPR is set. * g++.dg/cpp1y/lambda-generic-90842.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-90842.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/parser.c branches/gcc-9-branch/gcc/testsuite/ChangeLog