Re: Possible GCC optimization bug

Jonathan Wakely via Gcc-help <[email protected]> Thu, 12 Feb 2026 09:53:27 +0000
Newsgroups gmane.comp.gcc.help
Message-ID <CAH6eHdQWAxASN9z-G5gvAZkcMWEaaeAwF1_X67Z5jJGqeGvG_w@mail.gmail.com>
On Thu, 12 Feb 2026 at 01:02, Anubis 1101 via Gcc-help <[email protected]>
wrote:

> I've encountered some very strange behavior in this string class I'm
> working on, and I think I've narrowed it down to being a compiler bug.
>

No, your code has a bug. Turn on UBsan.