lambda support regression ?
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Jun 27 21:41:00 GMT 2011
On 27 June 2011 21:55, François Dumont wrote:
> /home/fdt/dev/gcc-trunk-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/debug/forward_list:344:17:
> error: cannot call member function 'std::__cxx1998::forward_list<_Tp,
> _Alloc>::iterator std::__cxx1998::forward_list<_Tp, _Alloc>::begin() [with
> _Tp = __gnu_test::NonCopyConstructible, _Alloc =
> std::allocator<__gnu_test::NonCopyConstructible>,
> std::__cxx1998::forward_list<_Tp, _Alloc>::iterator =
> std::__cxx1998::_Fwd_list_iterator<__gnu_test::NonCopyConstructible>]'
> without object
This doesn't look like it's anything to do with lambdas, that line is:
_Base_iterator __victim = _Base::begin();
so it's not forming the implicit (*this) object expression.
Does it work if you change it to this->_Base::begin() ?
More information about the Libstdc++
mailing list