re PR c++/90842 (ICE in poplevel, at cp/decl.c:585)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Nov 2019 01:00:43 +0000 (02:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Nov 2019 01:00:43 +0000 (02:00 +0100)
commitb69d4d4542d718e9010a71f0b05e20422b3f0d40
tree0f9ba94125c17b68f82364fbe137f77d8c9faef5
parentf0a2c2c89c8213ee3cf291983a7b4b4ed73b7e1e
re PR c++/90842 (ICE in poplevel, at cp/decl.c:585)

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.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r278538
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/lambda-generic-90842.C [new file with mode: 0644]