https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125304
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <[email protected]>: https://gcc.gnu.org/g:0940b305d7bbf11da12815e30480c768e4516b7d commit r17-625-g0940b305d7bbf11da12815e30480c768e4516b7d Author: David Malcolm <[email protected]> Date: Wed May 20 08:52:29 2026 -0400 testsuite: add reduced test for -fanalyzer on std::string [PR125304] The pointer comparison bug that led to false positives from -fanalyzer on std::string (by confusing the small-string-optimization and heap-allocation branches) should be fixed by r17-609-g573b66baa6cb8d. Add a torture test for this, based on a reduced snapshot of libstdc++, after preprocessing, with _M_is_local() made public so that we can test this directly. gcc/testsuite/ChangeLog: PR analyzer/125304 * g++.dg/analyzer/torture/std-string-pr125304.C: New test. Signed-off-by: David Malcolm <[email protected]>
