[Bug c++/53059] sizeof(std::list)=12 was 8 in previous releases

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 21 18:08:00 GMT 2012


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.



More information about the Gcc-bugs mailing list