PR c++/51662
* method.c (process_subob_fn): Increment function_depth around call to
instantiate_decl.
From-SVN: r193969
+2012-11-29 Jason Merrill <jason@redhat.com>
+
+ PR c++/51662
+ * method.c (process_subob_fn): Increment function_depth around call to
+ instantiate_decl.
+
2012-11-29 Kai Tietz <ktietz@redhat.com>
PR target/53912
really constexpr. */
if (DECL_DECLARED_CONSTEXPR_P (fn) && DECL_TEMPLATE_INSTANTIATION (fn)
&& !DECL_TEMPLATE_INSTANTIATED (fn))
- instantiate_decl (fn, /*defer_ok*/false, /*expl_class*/false);
+ {
+ ++function_depth;
+ instantiate_decl (fn, /*defer_ok*/false, /*expl_class*/false);
+ --function_depth;
+ }
if (!DECL_DECLARED_CONSTEXPR_P (fn))
*constexpr_p = false;
}