[Bug c++/127218] [13/14/15/16/17 Regression] constexpr memchr/strchr/strrchr/strstr count a nonzero offset in the first argument twice

stevensudit at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 4 22:10:33 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127218

Steve Sudit <stevensudit at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65504|0                           |1
        is obsolete|                            |

--- Comment #4 from Steve Sudit <stevensudit at gmail dot com> ---
Created attachment 65505
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65505&action=edit
Proposed fix with testsuite addition

Uploading the full patch, not the bare diff.


More information about the Gcc-bugs mailing list