------- Comment #17 from rguenth at gcc dot gnu dot org 2009-09-09 14:31 ------- As I said the proper fix would be to move _M_sort_after to _Fwd_list_node_base to be able to simply do
void
sort()
{
this->_M_impl._M_head._M_sort_after(std::less<_Tp>());
}
instead of going via the invalid cast.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41316
