constexpr.c (cxx_eval_call_expression): Don't add this call to the hash table if !depth_ok.

* constexpr.c (cxx_eval_call_expression): Don't add this call to
	the hash table if !depth_ok.

From-SVN: r226256
This commit is contained in:
Jason Merrill 2015-07-27 12:57:21 -04:00 committed by Jason Merrill
parent ad497dbb3e
commit cca444fb00
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2015-07-27 Marek Polacek <polacek@redhat.com>
PR c++/66555 PR c++/66555

View File

@ -1289,7 +1289,7 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t,
tree result = NULL_TREE; tree result = NULL_TREE;
constexpr_call *entry = NULL; constexpr_call *entry = NULL;
if (!non_constant_args) if (depth_ok && !non_constant_args)
{ {
new_call.hash = iterative_hash_template_arg new_call.hash = iterative_hash_template_arg
(new_call.bindings, constexpr_fundef_hasher::hash (new_call.fundef)); (new_call.bindings, constexpr_fundef_hasher::hash (new_call.fundef));