[Bug c++/53059] sizeof(std::list)=12 was 8 in previous releases
ratnikov.ev at ya dot ru
gcc-bugzilla@gcc.gnu.org
Sun Apr 22 08:47:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059
--- Comment #6 from Evgeny Ratnikov <ratnikov.ev at ya dot ru> 2012-04-22 08:47:07 UTC ---
(In reply to comment #2)
> 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.
To be clear.
It is not a real problem that the size of std::list was changed. The real
problem is that after such change my application (-std=98) linked with
libraries (-std=0x) causes corrupted stack.
May be I was too precise naming a bug.
It would be nice to hear your opinion about my situation.
More information about the Gcc-bugs
mailing list