Includes https://github.com/google/re2/commit/b025c6a3ae05995660e3b882eb3277f4399ced1a.
I can't actually reproduce the issue anymore, fwiw.
Looks like this was a fluke, I can build the current re2 in the tree (re2-0.2022.12.01) with both gcc-13 and clang-16 without problems.