+2015-06-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/65843
+ * pt.c (tsubst_copy_and_build): Register a capture proxy in
+ local_specializations.
+
2015-06-17 Jason Merrill <jason@redhat.com>
PR c++/66001
r = build_cxx_call (wrap, 0, NULL, tf_warning_or_error);
}
else if (outer_automatic_var_p (r))
- r = process_outer_var_ref (r, complain);
+ {
+ r = process_outer_var_ref (r, complain);
+ if (is_capture_proxy (r))
+ register_local_specialization (r, t);
+ }
if (TREE_CODE (TREE_TYPE (t)) != REFERENCE_TYPE)
/* If the original type was a reference, we'll be wrapped in