This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
lambda support regression ?
- From: François Dumont <francois dot cppdevs at free dot fr>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 27 Jun 2011 22:55:36 +0200
- Subject: lambda support regression ?
Hi
Building test in debug mode generate compilation errors in presence
of the lamba expressions used in safe forward_list implementation:
/home/fdt/dev/gcc-trunk-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/debug/forward_list:
In lambda function:
/home/fdt/dev/gcc-trunk-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/debug/forward_list:351:30:
required from 'struct std::__debug::forward_list<_Tp,
_Alloc>::resize(std::__debug::forward_list<_Tp, _Alloc>::size_type)
[with _Tp = __gnu_test::NonCopyConstructible, _Alloc =
std::allocator<__gnu_test::NonCopyConstructible>,
std::__debug::forward_list<_Tp, _Alloc>::size_type = long unsigned
int]::<lambda(struct
std::__cxx1998::_Fwd_list_const_iterator<__gnu_test::NonCopyConstructible>)>'
/home/fdt/dev/gcc-trunk-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/debug/forward_list:351:6:
required from 'void std::__debug::forward_list<_Tp,
_Alloc>::resize(std::__debug::forward_list<_Tp, _Alloc>::size_type)
[with _Tp = __gnu_test::NonCopyConstructible, _Alloc =
std::allocator<__gnu_test::NonCopyConstructible>,
std::__debug::forward_list<_Tp, _Alloc>::size_type = long unsigned int]'
/home/fdt/dev/gcc-trunk/libstdc++-v3/testsuite/23_containers/forward_list/capacity/resize_size.cc:33:17:
required from here
/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
compiler exited with status 1
Sorry, I don't know in what revision this regression appeared.
Regards