On 5/7/22 15:11, Marek Polacek wrote:
On Tue, May 03, 2022 at 04:59:38PM -0400, Jason Merrill wrote:
Does this testcase still work with this patch?
struct A {
const A* p = this;
};
struct B {
A a = A{};
};
constexpr B b;
static_assert (b.a.p == );
Ouch, no. Thanks for catching this,
On Tue, May 03, 2022 at 04:59:38PM -0400, Jason Merrill wrote:
> Does this testcase still work with this patch?
>
> struct A {
> const A* p = this;
> };
>
> struct B {
> A a = A{};
> };
>
> constexpr B b;
> static_assert (b.a.p == );
Ouch, no. Thanks for catching this, it would have been