This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: lambda support regression ?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: François Dumont <francois dot cppdevs at free dot fr>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 27 Jun 2011 22:41:29 +0100
- Subject: Re: lambda support regression ?
- References: <4E08EE48.4090706@free.fr>
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() ?