PR c++/88979 - further P0634 fix for constructors.
authorMarek Polacek <polacek@redhat.com>
Wed, 13 Mar 2019 18:38:45 +0000 (18:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 13 Mar 2019 18:38:45 +0000 (18:38 +0000)
commitcbfa3ec327c44491ec9c141c6476ba1d6df639e9
tree662430d3b23787de10c4a5be58ac473ddb0c7fee
parent129ef157d4c0f369de9a5966b9f64bf9634e7d83
PR c++/88979 - further P0634 fix for constructors.

* parser.c (cp_parser_decl_specifier_seq): Pass flags to
cp_parser_constructor_declarator_p.
(cp_parser_direct_declarator): Allow missing typename for constructor
parameters.
(cp_parser_constructor_declarator_p): Add FLAGS parameter.  Pass it to
cp_parser_type_specifier.

* g++.dg/cpp2a/typename15.C: New test.

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