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

2012-04-22 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 --- Comment #10 from Evgeny Ratnikov 2012-04-23 02:47:37 UTC --- Now it's clear. Thanks for replies. .

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

2012-04-22 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 --- Comment #8 from Evgeny Ratnikov 2012-04-22 19:11:22 UTC --- (In reply to comment #7) > (In reply to comment #6) > > problem is that after such change my application (-std=98) linked with > > libraries (-std=0x) causes corrupted stack. > > Yo

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

2012-04-22 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 --- Comment #6 from Evgeny Ratnikov 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 contai

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

2012-04-21 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 --- Comment #5 from ratnikov.ev at ya dot ru 2012-04-22 03:26:43 UTC --- Anyway there will be no backward compability. I mean when I use a library compiled with gcc-4.7.0 + 0x with other code compiled with pervious gcc versions (and vice versa

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

2012-04-21 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 --- Comment #1 from ratnikov.ev at ya dot ru 2012-04-21 12:23:36 UTC --- g++ -v Reading specs from /usr/lib/gcc/i486-slackware-linux/4.7.0/specs COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.7.0/lto-wrapper

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

2012-04-21 Thread ratnikov.ev at ya dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53059 Bug #: 53059 Summary: sizeof(std::list)=12 was 8 in previous releases Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Pr