Check dynamic_cast is not used with -fno-rtti, unless it is a noop or can be resolved statically.