[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #7 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ae7cdc8c0f5278e7941f1de7c72ffe9f1fed2775 commit r13-7510-gae7cdc8c0f5278e7941f1de7c72ffe9f1fed2775 Author: Jonathan

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #6 from Jonathan Wakely --- Fixed on trunk so far, backport to follow.

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #5 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:628ba410b9265dbd4278c1f1b1fadf05348adef2 commit r14-1648-g628ba410b9265dbd4278c1f1b1fadf05348adef2 Author: Jonathan Wakely

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #3 from Jonathan Wakely --- It looks like I forgot to actually format using 'P' though, I only parsed it from the format string. This would fix that, and disable the P2519 changes for -std=c++20 and -std=c++23: ---

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #2 from Jonathan Wakely --- GCC's formatter specialization has: // _GLIBCXX_RESOLVE_LIB_DEFECTS // P2519R3 Formatting pointers __first = __spec._M_parse_zero_fill(__first, __last); if (__finished())

[Bug libstdc++/110149] std::format for pointer arguments allows a '0' option

2023-06-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 --- Comment #1 from Jonathan Wakely --- 0p is proposed by https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2510r3.pdf