http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59106
--- Comment #3 from Yury Gribov <y.gribov at samsung dot com> --- (In reply to Kostya Serebryany from comment #2) > We should be building libsanitizer with -fno-rtti Ubsan seems to require it: /home/ygribov/gcc/gcc-master/libsanitizer/ubsan/ubsan_type_hash.cc:121:63: error: ‘dynamic_cast’ not permitted with -fno-rtti dynamic_cast<const abi::__si_class_type_info*>(Derived)) ^