[Bug libstdc++/97044] Undefined format macros because of include order on AIX

2020-09-21 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97044 David Edelsohn changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libstdc++/97044] Undefined format macros because of include order on AIX

2020-09-21 Thread clement.chigot at atos dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97044 Clément Chigot changed: What|Removed |Added CC||dje at gcc dot gnu.org --- Comment #3 f

[Bug libstdc++/97044] Undefined format macros because of include order on AIX

2020-09-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97044 --- Comment #2 from Jonathan Wakely --- Specifically, C99 7.8.1 footnote 182 says: "C++ implementations should define these macros only when _ _STDC_FORMAT_MACROS is defined before is included." The footnote is not present in C11. C++11 27.9.

[Bug libstdc++/97044] Undefined format macros because of include order on AIX

2020-09-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97044 --- Comment #1 from Jonathan Wakely --- The C99 standard says that __STDC_FORMATE_MACROS must be defined before including the header. The C++11 standard is clear that __STDC_FORMAT_MACROS has no effect in C++ programs, and the header must defined