https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63164
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org, | |mpolacek at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I guess when we implement http://wg21.link/p1327r1 we could use the same function to optimize __dynamic_cast in constexpr as well as if during optimization we determine which vtable a particular __dynamic_cast call is called with and optimize that too if possible.