[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Jonathan Wakely --- Fixed for 13.3
[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:74f1c016f44daf18e4bed76b283cd5bfd0b5c8c7 commit r13-7629-g74f1c016f44daf18e4bed76b283cd5bfd0b5c8c7 Author: Jonathan Wakely Date: Tue Jul 18 10:36:37 2023 +0100 libstdc++: Check for multiple modifiers in chrono format string [PR110708] The logic for handling modified chrono specs like %Ey was just restarting the loop after each modifier, and not checking whether we'd already seen a modifier. libstdc++-v3/ChangeLog: PR libstdc++/110708 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only allow a single modifier. * testsuite/std/time/format.cc: Check multiple modifiers. (cherry picked from commit 52bfec7ea0eb0f1a4c5bfa55b0d6b9b6c8808e26)
[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.3 --- Comment #3 from Jonathan Wakely --- Fixed on trunk, the backport can wait until after the upcoming 13.2 release.
[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:52bfec7ea0eb0f1a4c5bfa55b0d6b9b6c8808e26 commit r14-2638-g52bfec7ea0eb0f1a4c5bfa55b0d6b9b6c8808e26 Author: Jonathan Wakely Date: Tue Jul 18 10:36:37 2023 +0100 libstdc++: Check for multiple modifiers in chrono format string [PR110708] The logic for handling modified chrono specs like %Ey was just restarting the loop after each modifier, and not checking whether we'd already seen a modifier. libstdc++-v3/ChangeLog: PR libstdc++/110708 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only allow a single modifier. * testsuite/std/time/format.cc: Check multiple modifiers.
[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 --- Comment #1 from Jonathan Wakely --- And similarly for %OEy and %EOy
[Bug libstdc++/110708] std::format("{:%EEC %OOd}", std::chrono::system_clock::now()) should be rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110708 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Last reconfirmed||2023-07-17 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED