re PR c++/86550 (Lambda parsing allows arbitrary types in decl-specifier-seq)
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Jul 2018 21:01:54 +0000 (23:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Jul 2018 21:01:54 +0000 (23:01 +0200)
commita171a8bb39d5674f0f1fafcec642e625d601dbe2
treedb5105875721a43e82f277b51244420ccba5ce39
parent6f41f92bebfb0b5eb3a3859b1c3bb7710d1cb48b
re PR c++/86550 (Lambda parsing allows arbitrary types in decl-specifier-seq)

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.

From-SVN: r262862
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-86550.C [new file with mode: 0644]