DR 2413 - typename in conversion-function-ids.
authorMarek Polacek <polacek@redhat.com>
Tue, 6 Aug 2019 02:23:43 +0000 (02:23 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 6 Aug 2019 02:23:43 +0000 (02:23 +0000)
commitc026e33449102076609e084ca2cd4a729b3c504b
treeed226d55412a8aa9a8a9a2f20b5f26538c40b1d8
parent5e74e93c1ceb71116ae2cd8c092c969368d1cc8c
DR 2413 - typename in conversion-function-ids.

* parser.c (cp_parser_conversion_type_id): Call
cp_parser_type_specifier_seq with CP_PARSER_FLAGS_TYPENAME_OPTIONAL
instead of CP_PARSER_FLAGS_NONE.

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

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