[Bug c++/54740] Empty base optimization gets confused when a member variable derives from the same empty base.

2012-09-28 Thread avenikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54740 --- Comment #3 from Andy Venikov 2012-09-29 00:09:55 UTC --- (In reply to comment #2) > (In reply to comment #1) > > No they shouldn't. The standard requires this to pass: > > > > outer o; > > assert( static_cast(&o) != &o.i_ ); >

[Bug c++/54740] New: Empty base optimization gets confused when a member variable derives from the same empty base.

2012-09-28 Thread avenikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54740 Bug #: 54740 Summary: Empty base optimization gets confused when a member variable derives from the same empty base. Classification: Unclassified Product: gcc Version: u