[cfe-dev] Clang7 UBSan + -fvisibility-hidden

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 26 11:02:48 PDT 2019


On Tue, Mar 26, 2019 at 04:38:54PM +0100, Philipp Berger via cfe-dev wrote:
> Considering clang's output (downcast of address 0x5638e42892e0 which
> does not point to an object of type 'any::holder<typename
> remove_cv<basic_string<char, char_traits<char>, allocator<char> >
> > ::type>' (aka 'holder<std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >') and object is of type
> 'boost::any::holder<std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >') we can only conclude
> that this boost::any instance in fact holds the correct member... in
> which case the downcast should be legal.

Have you build with -rdynamic?

Joerg



More information about the cfe-dev mailing list