PR c++/88184 - ICE when treating name as template-name.
authorMarek Polacek <polacek@redhat.com>
Tue, 4 Dec 2018 19:28:27 +0000 (19:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 4 Dec 2018 19:28:27 +0000 (19:28 +0000)
commit22f309bc29de788fc686f9f98b194996b109b218
treeae92c44804ef6e3454a3d4b9ac406f6df3bb129e
parentde117207d722031db5db9a1efafcda900ea14f77
PR c++/88184 - ICE when treating name as template-name.

* pt.c (lookup_template_function): Always build the TEMPLATE_ID_EXPR
with unknown_type_node.

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

From-SVN: r266793
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/fn-template17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/fn-template18.C [new file with mode: 0644]