Re: [PATCH v2] c++: ICE with -Wall and constexpr if [PR94937]

2020-05-18 Thread Jason Merrill via Gcc-patches
On 5/7/20 10:55 AM, Marek Polacek wrote: On Wed, May 06, 2020 at 05:26:32PM -0400, Jason Merrill wrote: On 5/5/20 6:17 PM, Marek Polacek wrote: An ICE arises here because we call cp_get_callee_fndecl_nofold in a template, and we've got a CALL_EXPR whose CALL_EXPR_FN is a BASELINK. This tickles

Re: [PATCH v2] c++: ICE with -Wall and constexpr if [PR94937]

2020-05-07 Thread Marek Polacek via Gcc-patches
On Wed, May 06, 2020 at 05:26:32PM -0400, Jason Merrill wrote: > On 5/5/20 6:17 PM, Marek Polacek wrote: > > An ICE arises here because we call cp_get_callee_fndecl_nofold in a > > template, and we've got a CALL_EXPR whose CALL_EXPR_FN is a BASELINK. > > This tickles the INDIRECT_TYPE_P assert in c