PR c++/88373 - wrong parse error with ~.
authorMarek Polacek <polacek@redhat.com>
Thu, 6 Dec 2018 19:43:17 +0000 (19:43 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 6 Dec 2018 19:43:17 +0000 (19:43 +0000)
commit89a249f2ecbdfe856dab2cd82f913a93c88ecbfe
treeca1408b1ce5eff06b5c7a39d285c806516833e53
parentc438ab79bf28a354599dc6c460b2b662f555175b
PR c++/88373 - wrong parse error with ~.

* parser.c (cp_parser_template_name): Check tag_type for
none_type.

* g++.dg/cpp2a/fn-template19.C: New test.

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