Re: nullptr in C++ mode on macOS

2023-02-10 Thread Bruno Haible
Jeffrey Walton wrote: > Then you have Apple's version of Clang. They are probably C++03 for > compatibility reasons for Xcode developers. So even if LLVM moved to > C++11, Apple's Clang may stay at C++03. Ah, that explains the nullptr issue with this compiler, and also why we have to test __apple_

Re: nullptr in C++ mode on macOS

2023-02-10 Thread Bruno Haible
Paul Eggert wrote: > Let's treat C++ overloading like we already treat C _Generic, that is, > as a documented limitation of the substitute nullptr macro. This should > be good enough for Gnulib itself. I installed the attached to document > that, and to work around the Apple clang 14 incompatibi

Re: nullptr in C++ mode on macOS

2023-02-09 Thread Paul Eggert
On 2/9/23 11:31, Bruno Haible wrote: * If we '#define nullptr __null' again after including the header files, it will be usable with varargs, but will - violate the requirement that nullptr is an instance of nullptr_t, - and thus open up problems with overloading again. I do

Re: nullptr in C++ mode on macOS

2023-02-09 Thread Arsen Arsenović
Hi, Bruno Haible writes: > On macOS 12.5 (machine: gcc104.fsffrance.org), the test-nullptr-c++.cc fails > to compile: > > - > Making check in . > c++ -DHAVE_CONFIG_H -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1

Re: nullptr in C++ mode on macOS

2023-02-09 Thread Jeffrey Walton
On Thu, Feb 9, 2023 at 2:31 PM Bruno Haible wrote: > > On macOS 12.5 (machine: gcc104.fsffrance.org), the test-nullptr-c++.cc fails > to compile: One of the sharp edges you may be encountering is, LLVM was shipping a C++03 compiler by default. You had to do something special to use C++11 (-std=c+

nullptr in C++ mode on macOS

2023-02-09 Thread Bruno Haible
On macOS 12.5 (machine: gcc104.fsffrance.org), the test-nullptr-c++.cc fails to compile: - Making check in . c++ -DHAVE_CONFIG_H -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltest