https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Can we have any state passed around? _M_extract_via_format can have some extra reference argument to some state like glibc has passed through it, but wouldn't that work only for the recursive calls? E.g. if one uses get with "%r" format or some other one that recurses and contains everything to recompute the fields, we could recompute them. But if get itself contains a format string, then each format specifier in it seems to be required to be processed separately by https://eel.is/c++draft/locale.time.get#members-8.4 - a virtual method which has standard mandated arguments is called for each format specifier, so it is unclear how to carry some state around the parsing of the whole format string.