diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-11-16 21:03:21 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-11-17 17:21:24 +0000 |
commit | 054bf99841aad3869c70643b2ba2d9f85770c980 (patch) | |
tree | 32f79aea7584caae05ee00d1cf807a0bc5d8e3a1 /libcpp | |
parent | c70546482388951b5c9c19cff002ee6ab920b7f5 (diff) | |
download | gcc-054bf99841aad3869c70643b2ba2d9f85770c980.zip gcc-054bf99841aad3869c70643b2ba2d9f85770c980.tar.gz gcc-054bf99841aad3869c70643b2ba2d9f85770c980.tar.bz2 |
libstdc++: Fix std::type_info::before for ARM [PR103240]
The r179236 fix for std::type_info::operator== should also have been
applied to std::type_info::before. Otherwise two distinct types can
compare equivalent due to using a string comparison, when they should do
a pointer comparison.
libstdc++-v3/ChangeLog:
PR libstdc++/103240
* libsupc++/tinfo2.cc (type_info::before): Use unadjusted name
to check for the '*' prefix.
* testsuite/util/testsuite_shared.cc: Add type_info object for
use in new test.
* testsuite/18_support/type_info/103240.cc: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions