http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-21 18:05:42 UTC --- Why do you think this is a bug? The C++ 2011 standard requires that std::list::size() is O(1) so a new member variable is needed to store the container's size.