https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123895
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- We should also handle bad_alloc fom the _NFA constructor and turn that into a regex_error with error code error_space, which means "There is insufficient memory to convert the expression into a finite state machine."
