Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-23 Thread Jason Merrill via Gcc-patches
try that. How does this look? Bootstrapped and regtested on x86_64-pc-linux-gnu. OK. -- >8 -- Subject: [PATCH] c++: get_nsdmi in template context [PR108116] Here during ahead of time checking of C{}, we indirectly call get_nsdmi for C::m from finish_compound_literal, which in turn ca

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-23 Thread Patrick Palka via Gcc-patches
an assert to > > > > > that effect). In build_over_call for example we exit early when > > > > > processing_template_decl is set, and return a templated CALL_EXPR > > > > > that doesn't include default arguments at all. A consequence of > &

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-22 Thread Patrick Palka via Gcc-patches
On Thu, 22 Dec 2022, Jason Merrill wrote: > On 12/22/22 16:41, Patrick Palka wrote: > > On Thu, 22 Dec 2022, Jason Merrill wrote: > > > > > On 12/22/22 11:31, Patrick Palka wrote: > > > > On Wed, 21 Dec 2022, Jason Merrill wrote: > > > > > > > > > On 12/21/22 09:52, Patrick Palka wrote: > > > >

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-22 Thread Jason Merrill via Gcc-patches
On 12/22/22 16:41, Patrick Palka wrote: On Thu, 22 Dec 2022, Jason Merrill wrote: On 12/22/22 11:31, Patrick Palka wrote: On Wed, 21 Dec 2022, Jason Merrill wrote: On 12/21/22 09:52, Patrick Palka wrote: Here during ahead of time checking of C{}, we indirectly call get_nsdmi for C::m from f

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-22 Thread Patrick Palka via Gcc-patches
On Thu, 22 Dec 2022, Jason Merrill wrote: > On 12/22/22 11:31, Patrick Palka wrote: > > On Wed, 21 Dec 2022, Jason Merrill wrote: > > > > > On 12/21/22 09:52, Patrick Palka wrote: > > > > Here during ahead of time checking of C{}, we indirectly call get_nsdmi > > > > for C::m from finish_compound

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-22 Thread Jason Merrill via Gcc-patches
On 12/22/22 11:31, Patrick Palka wrote: On Wed, 21 Dec 2022, Jason Merrill wrote: On 12/21/22 09:52, Patrick Palka wrote: Here during ahead of time checking of C{}, we indirectly call get_nsdmi for C::m from finish_compound_literal, which in turn calls break_out_target_exprs for C::m's (non-te

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-22 Thread Patrick Palka via Gcc-patches
On Wed, 21 Dec 2022, Jason Merrill wrote: > On 12/21/22 09:52, Patrick Palka wrote: > > Here during ahead of time checking of C{}, we indirectly call get_nsdmi > > for C::m from finish_compound_literal, which in turn calls > > break_out_target_exprs for C::m's (non-templated) initializer, during >

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-21 Thread Jason Merrill via Gcc-patches
On 12/21/22 09:52, Patrick Palka wrote: Here during ahead of time checking of C{}, we indirectly call get_nsdmi for C::m from finish_compound_literal, which in turn calls break_out_target_exprs for C::m's (non-templated) initializer, during which we end up building a call to A::~A and checking ex

Re: [PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-21 Thread Patrick Palka via Gcc-patches
On Wed, 21 Dec 2022, Patrick Palka wrote: > Here during ahead of time checking of C{}, we indirectly call get_nsdmi > for C::m from finish_compound_literal, which in turn calls > break_out_target_exprs for C::m's (non-templated) initializer, during > which we end up building a call to A::~A and ch

[PATCH] c++: get_nsdmi in template context [PR108116]

2022-12-21 Thread Patrick Palka via Gcc-patches
Here during ahead of time checking of C{}, we indirectly call get_nsdmi for C::m from finish_compound_literal, which in turn calls break_out_target_exprs for C::m's (non-templated) initializer, during which we end up building a call to A::~A and checking expr_noexcept_p for it (from build_vec_delet