Fix a bug with type constraints in constructors.
authorAndrew Sutton <asutton@lock3software.com>
Wed, 23 Oct 2019 13:05:32 +0000 (13:05 +0000)
committerAndrew Sutton <asutton@gcc.gnu.org>
Wed, 23 Oct 2019 13:05:32 +0000 (13:05 +0000)
commit07c9f0961d540e2cb63eb2326e673b13d1df4a26
tree2b9aaf8e126d6b731f3379b23cc263f78ddbad94
parent82e8e335f917b9ce40801838c06f7945cf88da43
Fix a bug with type constraints in constructors.

gcc/cp/
* parser.c (cp_parser_constructor_declarator_p): Pass an empty
decl-specifier-seq to make sure we parse type constraints as part
of a type-specifier.

gcc/testsuite/
* g++.dg/cpp2a/concepts5.C: New test.

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