Re: [PATCH] c++: requires-expr substitution and access checking [PR107179]

2022-11-03 Thread Jason Merrill via Gcc-patches
On 11/3/22 11:45, Patrick Palka wrote: Like during satisfaction, we need to check access immediately during substitution of a requires-expr since the outcome of an access check can determine the value of the requires-expr. And otherwise, in contexts where access checking is deferred (such as dur

[PATCH] c++: requires-expr substitution and access checking [PR107179]

2022-11-03 Thread Patrick Palka via Gcc-patches
Like during satisfaction, we need to check access immediately during substitution of a requires-expr since the outcome of an access check can determine the value of the requires-expr. And otherwise, in contexts where access checking is deferred (such as during substitution into a base-clause), a f