https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117520
Bug ID: 117520 Summary: C++26 std::text_encoding: == should be = Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: pkeir at outlook dot com Target Milestone: --- I am seeing warnings about equality comparison results being unused [-Wunused-comparison] in libstdc++-v3/include/std/text_encoding - which is included through locale_classes.h. The definition of operator+= on line 568 includes two instances of: *this == _Iterator{}; ...which I suspect should be: *this = _Iterator{};