This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lambda support regression ?


On 27 June 2011 22:41, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 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.

You're right, it is caused by the presence of the lambda ... weird.

I've created http://gcc.gnu.org/PR49554 for this


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]