From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15699 invoked by alias); 3 Apr 2007 23:07:10 -0000 Received: (qmail 15356 invoked by uid 48); 3 Apr 2007 23:06:46 -0000 Date: Tue, 03 Apr 2007 23:07:00 -0000 Message-ID: <20070403230646.15355.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/31449] [4.1/4.2/4.3 regression] static_cast can remove const-ness In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg00257.txt.bz2 ------- 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 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