https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79833
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think this isn't correct, the %C and %y parsing can happen in different _M_extract_via_format calls. So to fix this we really need to pass around a state object as mentioned in the r12-5898-gc82e492616e343b6d6db218d2b498267bac899de commit log, in which it will note the parsed %C value, whether %y has been parsed, among other things and let some finalization routine finalize it.