[Bug libstdc++/110143] std::format for pointer arguments does not work

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 --- Comment #4 from Bruno Haible --- (In reply to Jonathan Wakely from comment #2) > Those are the pointer specializations that are supported, and you can't use > them to format int* I see. If 'int*' was supported as a "pointer" here, 'char*' w

[Bug libstdc++/110143] std::format for pointer arguments does not work

2023-06-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 --- Comment #3 from Jonathan Wakely --- N.B. the library agrees that int* cannot be formatted: /usr/include/fmt/core.h:1751:17: error: static assertion failed: Formatting of non-void pointers is disallowed. 1751 | static_assert(formattable_

[Bug libstdc++/110143] std::format for pointer arguments does not work

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

[Bug libstdc++/110143] std::format for pointer arguments does not work

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 --- Comment #1 from Bruno Haible --- Created attachment 55273 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55273&action=edit test case bug2.cc