Re: [PATCH] c++: make build_throw SFINAE-friendly [PR98388]

2024-02-08 Thread Patrick Palka
On Wed, 7 Feb 2024, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > -- >8 -- > Here the problem is that we give hard errors while substituting > template parameters during overload resolution of is_throwable > which has an invalid throw in decltype. > > Th

[PATCH] c++: make build_throw SFINAE-friendly [PR98388]

2024-02-07 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- Here the problem is that we give hard errors while substituting template parameters during overload resolution of is_throwable which has an invalid throw in decltype. The backtrace shows that fn_type_unification -> instantiate_