PR c++/63588
* pt.c (uses_template_parms): Handle null argument.
From-SVN: r217948
+2014-11-21 Jason Merrill <jason@redhat.com>
+
+ PR c++/63588
+ * pt.c (uses_template_parms): Handle null argument.
+
2014-11-21 Jakub Jelinek <jakub@redhat.com>
PR target/63764
int
uses_template_parms (tree t)
{
+ if (t == NULL_TREE)
+ return false;
+
bool dependent_p;
int saved_processing_template_decl;
--- /dev/null
+// PR c++/63588
+// { dg-do compile { target c++14 } }
+
+template <class T> T elements;
+int i = elements <>; // { dg-error "arguments" }