Re: [PATCH] c++: Don't ICE due to artificial constructor parameters [PR116722]

2024-09-20 Thread Jason Merrill
On 9/20/24 5:21 PM, Simon Martin wrote: The following code triggers an ICE === cut here === class base {}; class derived : virtual public base { public: template constexpr derived(Arg) {} }; int main() { derived obj(1.); } === cut here === The problem is that cxx_bind_parameters_in_call e

[PATCH] c++: Don't ICE due to artificial constructor parameters [PR116722]

2024-09-20 Thread Simon Martin
The following code triggers an ICE === cut here === class base {}; class derived : virtual public base { public: template constexpr derived(Arg) {} }; int main() { derived obj(1.); } === cut here === The problem is that cxx_bind_parameters_in_call ends up attempting to convert a REAL_CST (the