------- Comment #1 from reichelt at gcc dot gnu dot org 2007-04-04 00:06 ------- Confirmed. The regression was introduced between GCC 4.0.2 and 4.0.3.
Mark, it looks like the following patch of yours is responsible for the regression: 2006-01-21 Mark Mitchell <[EMAIL PROTECTED]> PR c++/25895 * class.c (build_base_path): Generate a NOP_EXPR instead of a COMPONENT_REF if the base and derived classes are at the same address. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at codesourcery dot | |com, reichelt at gcc dot gnu | |dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |accepts-invalid, monitored Known to fail| |4.0.3 Known to work| |4.0.2 Last reconfirmed|0000-00-00 00:00:00 |2007-04-04 00:06:46 date| | Summary|static_cast can remove |[4.1/4.2/4.3 regression] |const-ness |static_cast can remove | |const-ness Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31449