]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/79056 - C++17 ICE with invalid template syntax.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jun 2017 23:29:51 +0000 (23:29 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jun 2017 23:29:51 +0000 (23:29 +0000)
commit7377eb47ee638706c29b6a73d91a151ba3fff21d
tree89321169b9afe369809cbf60b8fd80fbb0a0593a
parentbe581e60c53c73fe7b29f73d9ddf036e109b8ae5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249614 138bc75d-0d04-0410-961f-82ee72b054a4
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]