PR c++/79056 - C++17 ICE with invalid template syntax.
authorJason Merrill <jason@redhat.com>
Fri, 23 Jun 2017 23:29:51 +0000 (19:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 23 Jun 2017 23:29:51 +0000 (19:29 -0400)
commite2e80f2f3c05ebc80ed0489babe527468a99e5a1
tree89321169b9afe369809cbf60b8fd80fbb0a0593a
parentee444c5f45985c29dcf5b4341f05a0bd15cc1897
PR c++/79056 - C++17 ICE with invalid template syntax.

* parser.c (cp_parser_simple_type_specifier): Don't assume that type
is a TYPE_DECL.
(cp_parser_check_for_invalid_template_id): Handle TYPE_DECL.
* pt.c (template_placeholder_p): New.
* cp-tree.h: Declare it.

From-SVN: r249614
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/parse/template28.C [new file with mode: 0644]