https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120620
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to Patrick Palka from comment #4) > The ICE (with -std=c++20) started with r13-3299 "c++ modules: ICE with > dynamic_cast [PR106304]". This patch causes cxx_dynamic_cast_fn_p to return true for user-written calls to abi::__dynamic_cast, whereas before it'd only recognize calls to __dynamic_cast synthesized by build_dynamic_cast_1. Do we intend to attempt constant evaluation of user-written __dynamic_cast calls? If so, we need to make cxx_eval_dynamic_cast_fn robust to non-constant/non-reduced arguments. If not, I think we need to refine cxx_dynamic_cast_fn_p to return true only for synthesized __dynamic_cast calls...