PR c++/88325 - ICE with invalid out-of-line template member definition.
authorMarek Polacek <polacek@redhat.com>
Fri, 1 Feb 2019 19:58:44 +0000 (19:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 1 Feb 2019 19:58:44 +0000 (19:58 +0000)
commita53a893b4fe04ec966a4ec178ee8f394426a5dad
treec7b2750b3f0cc06cf5e61cbc27076d19f5ed4c01
parente71ac163553c47c516d2d5e77ba5fedce6ceec47
PR c++/88325 - ICE with invalid out-of-line template member definition.

* parser.c (cp_parser_class_name): Don't call make_typename_type
for overloads.

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

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