https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118408
--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 13 Jan 2025, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118408 > > --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- > (In reply to Jonathan Wakely from comment #2) > > It fails if you mix old and new ABIs in a single executable. > > More precisely, if you mix std::regex compiled with the old and new ABIs in a > single executable. > > It's OK to mix the ABIs if all the objects that use std::regex agree on the > same ABI. I didn't know mixing ABIs was documented as working. It probably only does when the two uses are isolated, but probably the desired behavior is a link error (say when trying to pass a wrong ABI string to a function).