* constexpr.c (cxx_eval_call_expression): Don't add this call to
the hash table if !depth_ok.
From-SVN: r226256
+2015-07-27 Jason Merrill <jason@redhat.com>
+
+ * constexpr.c (cxx_eval_call_expression): Don't add this call to
+ the hash table if !depth_ok.
+
2015-07-27 Marek Polacek <polacek@redhat.com>
PR c++/66555
tree result = NULL_TREE;
constexpr_call *entry = NULL;
- if (!non_constant_args)
+ if (depth_ok && !non_constant_args)
{
new_call.hash = iterative_hash_template_arg
(new_call.bindings, constexpr_fundef_hasher::hash (new_call.fundef));