[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 --- Comment #24 from Jonathan Wakely --- The new tests fail on AIX 7.2: FAIL: 21_strings/headers/cwchar/24012.cc (test for excess errors) Excess errors: /home/jwakely/build/powerpc-ibm-aix7.2.0.0/libstdc++-v3/include/cwchar:224: error: '::wcstol

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 --- Comment #23 from Jonathan Wakely --- Created attachment 41068 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41068&action=edit Use dynamic checks for C99 functions This fixes it and passes the testsuite on GNU/Linux and FreeBSD 11.0-R

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 --- Comment #22 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #20) > Also, I assume this is only a problem for -std=c++98 or -std=gnu++98, > because if the system headers don't declare those functions for C++11 and > later di

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 --- Comment #21 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #19) > (In reply to Gerald Pfeifer from comment #4) > > Historically, on some systems one had to define _POSIX_C_SOURCE to get at > > fileno(), which has been used

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 --- Comment #20 from Jonathan Wakely --- Also, I assume this is only a problem for -std=c++98 or -std=gnu++98, because if the system headers don't declare those functions for C++11 and later dialects then that's a bug in those system headers.

[Bug target/24012] [5/6/7 regression] #define _POSIX_C_SOURCE breaks #include

2017-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012 Jonathan Wakely changed: What|Removed |Added Target Milestone|7.0 |8.0 --- Comment #19 from Jonathan Wake