Commit 169fe7fa by Jason Merrill Committed by Jason Merrill

re PR c++/63588 (ICE (segfault) on arm-linux-gnueabihf)

	PR c++/63588
	* pt.c (uses_template_parms): Handle null argument.

From-SVN: r217948
parent 18ea3d61
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
......
......@@ -8294,6 +8294,9 @@ for_each_template_parm (tree t, tree_fn_t fn, void* data,
int
uses_template_parms (tree t)
{
if (t == NULL_TREE)
return false;
bool dependent_p;
int saved_processing_template_decl;
......
// PR c++/63588
// { dg-do compile { target c++14 } }
template <class T> T elements;
int i = elements <>; // { dg-error "arguments" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment