On Thu, Aug 1, 2013 at 9:42 PM, David Edelsohn <dje....@gmail.com> wrote: > This patch broke bootstrap on AIX and probably many other targets. > > In file included from > /tmp/20130801/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/ > debug/safe_sequence.h:34:0, > from > /nasfarm/edelsohn/src/src/libstdc++-v3/src/c++11/debug.cc: > 26: > /tmp/20130801/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/debug/functions.h: > In > function 'bool __gnu_debug::__foreign_iterator_aux4(const > __gnu_debug::_Safe_ite > rator<_Iterator, _Sequence>&, _InputIterator, _PointerType1, _PointerType2)': > /tmp/20130801/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/debug/functions.h:189: > 6: error: 'addressof' is not a member of 'std' > __l(std::addressof(*__other), > ^
This is a libstdc++ bug. The file debug/functions.h is missing the inclusion of <memory> By the way, looking at the code, I think the local objects __l and __ge should be declared constexpr. That is not required, but it is good to annotate places where the code is conceptually "pure". -- Gaby