Resending https://reviews.llvm.org/D56485
As seen here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88684#c4
GCC libstdc++v3 implementation is __GXX_MERGED_TYPEINFO_NAMES=0 for all targets.
Thus it should be always compared string-wise. And one needs to check for name[0] != '*' as seen in typeinfo
implementation:
libstdc++-v3/libsupc++/typeinfo