Re: [PATCH v3] c++: ICE with temporary of class type in DMI [PR100252]

2022-05-07 Thread Jason Merrill via Gcc-patches
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,

[PATCH v3] c++: ICE with temporary of class type in DMI [PR100252]

2022-05-07 Thread Marek Polacek via Gcc-patches
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