Re: [pushed] c++: Fix DMI with lambda 'this' capture [PR94205]

2020-04-01 Thread Jason Merrill via Gcc-patches
On 4/1/20 10:47 AM, Patrick Palka wrote: On Wed, 1 Apr 2020, Jason Merrill wrote: We represent 'this' in a default member initializer with a PLACEHOLDER_EXPR. Normally in constexpr evaluation when we encounter one it refers to ctx->ctor, but when we're creating a temporary of class type, that

Re: [pushed] c++: Fix DMI with lambda 'this' capture [PR94205]

2020-04-01 Thread Patrick Palka via Gcc-patches
On Wed, 1 Apr 2020, Jason Merrill wrote: > We represent 'this' in a default member initializer with a PLACEHOLDER_EXPR. > Normally in constexpr evaluation when we encounter one it refers to > ctx->ctor, but when we're creating a temporary of class type, that replaces > ctx->ctor, so a

[pushed] c++: Fix DMI with lambda 'this' capture [PR94205]

2020-03-31 Thread Jason Merrill via Gcc-patches
We represent 'this' in a default member initializer with a PLACEHOLDER_EXPR. Normally in constexpr evaluation when we encounter one it refers to ctx->ctor, but when we're creating a temporary of class type, that replaces ctx->ctor, so a PLACEHOLDER_EXPR that refers to the type of the member being