Re: [PATCH] c++: Check constraints before instantiation from mark_used [PR95132]

2020-10-27 Thread Jason Merrill via Gcc-patches
On 10/26/20 5:37 PM, Patrick Palka wrote: This makes mark_used check constraints of a function _before_ calling maybe_instantiate_decl, so that we don't try instantiating a function (as part of return type deduction) with unsatisfied constraints. Bootstrapped and regtested on x86_64-pc-linux-gnu

[PATCH] c++: Check constraints before instantiation from mark_used [PR95132]

2020-10-26 Thread Patrick Palka via Gcc-patches
This makes mark_used check constraints of a function _before_ calling maybe_instantiate_decl, so that we don't try instantiating a function (as part of return type deduction) with unsatisfied constraints. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk and perhaps th