Re: C++ PATCH for c++/85200, ICE with constexpr if in generic lambda

2018-04-05 Thread Jason Merrill
On Wed, Apr 4, 2018 at 2:57 PM, Jason Merrill wrote: > Since, during partial instantiation of a generic lambda, we don't > substitute into the body of a constexpr if, we don't do lambda capture > as part of substitution. But extract_locals_r is supposed to do it as > part of remembering the subst

C++ PATCH for c++/85200, ICE with constexpr if in generic lambda

2018-04-04 Thread Jason Merrill
Since, during partial instantiation of a generic lambda, we don't substitute into the body of a constexpr if, we don't do lambda capture as part of substitution. But extract_locals_r is supposed to do it as part of remembering the substitution context to be used later. As it turns out, this was f