On 2019-12-07 I pushed:
> * lib/wchar.in.h (mbstate_t): Don't override on AIX.
This caused a regression: mbrtowc tests started to fail on AIX and, later,
also on MSVC. This patch fixes the regression:
2019-12-18 Bruno Haible
wchar: Fix test failures on AIX and MSVC (regression
Christian Biesinger wrote:
> (tested on the GCC compile farm, gcc119, /opt/IBM/xlC/16.1.0/bin/xlclang++)
>
> /opt/IBM/xlC/16.1.0/include2/c++/__bsd_locale_fallbacks.h:50:12:
> error: no matching function for call to
> 'wcsnrtombs'
> return wcsnrtombs(__dest, __src, __nwc, __len, __ps);
>
Christian Biesinger wrote:
> Testcase:
> #include "gnulib/config.h"
> #include // optional
> #include
>
> int main() {
> }
Let me add more C++ tests to gnulib, so that such errors become apparent
when compiling a testdir created with the option 'with-c++-tests'.
2019-12-05 Bruno Haible
On Tue, Dec 3, 2019, 02:31 Bruno Haible wrote:
> Hi Christian,
>
> > $ /opt/IBM/xlC/16.1.0/bin/xlclang++ test.cc -I gnulib/import -I
> > ../gnulib/import/
> > In file included from test.cc:2:
> > In file included from gnulib/import/stdlib.h:36:
> > In file included from /opt/IBM/xlC/16.1.0/includ
Hi Christian,
> $ /opt/IBM/xlC/16.1.0/bin/xlclang++ test.cc -I gnulib/import -I
> ../gnulib/import/
> In file included from test.cc:2:
> In file included from gnulib/import/stdlib.h:36:
> In file included from /opt/IBM/xlC/16.1.0/include2/c++/stdlib.h:94:
> /opt/IBM/xlC/16.1.0/include2/aix/stdlib.
That was actually the second error I got. I had to work around this
first one to get to it:
$ /opt/IBM/xlC/16.1.0/bin/xlclang++ test.cc -I gnulib/import -I
../gnulib/import/
In file included from test.cc:2:
In file included from gnulib/import/stdlib.h:36:
In file included from /opt/IBM/xlC/16.1.0/
(tested on the GCC compile farm, gcc119, /opt/IBM/xlC/16.1.0/bin/xlclang++)
/opt/IBM/xlC/16.1.0/include2/c++/__bsd_locale_fallbacks.h:50:12:
error: no matching function for call to
'wcsnrtombs'
return wcsnrtombs(__dest, __src, __nwc, __len, __ps);
^~
/usr/include/wchar