https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115413
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- If you're going to write code like this, why not if(typeid(*a)==typeid(A)) a->A::f(); to force the non-virtual call?