Re: [PATCH] c++: ICE with real-to-int conversion in template [PR97973]

2021-03-05 Thread Jason Merrill via Gcc-patches
On 3/3/21 7:55 PM, Marek Polacek wrote: In this test we are building a call in a template, but since neither the function nor any of its arguments are dependent, we go down the normal path in finish_call_expr. convert_arguments sees that we're binding a reference to int to double and therein con

[PATCH] c++: ICE with real-to-int conversion in template [PR97973]

2021-03-03 Thread Marek Polacek via Gcc-patches
In this test we are building a call in a template, but since neither the function nor any of its arguments are dependent, we go down the normal path in finish_call_expr. convert_arguments sees that we're binding a reference to int to double and therein convert_to_integer creates a FIX_TRUNC_EXPR.