PR c++/92739 - parsing requires clause with attributes.
authorAndrew Sutton <asutton@lock3software.com>
Tue, 7 Jan 2020 01:02:06 +0000 (01:02 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 Jan 2020 01:02:06 +0000 (20:02 -0500)
commite4bcf1f5497188d0ca6c4128767dcd0d5953914d
tree8a05b75ebc7b9266e690d339058ba0e41b84f1fc
parentbd401fc809040000c15e9c6bd39e9507c692b697
PR c++/92739 - parsing requires clause with attributes.

gcc/cp/
* parser.c (cp_parser_constraint_requires_parens): Exclude
attributes as postfix expressions.

gcc/testsuite/
* g++.dg/concepts-pr92739.C: New test.

From-SVN: r279935
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp2a/concepts-attrib1.C [new file with mode: 0644]