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

2020-05-06 Thread Jason Merrill via Gcc-patches
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 cp_get_fndecl_from_callee. Jakub said in the PR that he'd hit a similar pro

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

2020-05-05 Thread Marek Polacek via Gcc-patches
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 cp_get_fndecl_from_callee. Jakub said in the PR that he'd hit a similar problem too and dealt with it in omp_declare_