This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31449] [4.1/4.2/4.3 regression] static_cast can remove const-ness
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2007 23:06:46 -0000
- Subject: [Bug c++/31449] [4.1/4.2/4.3 regression] static_cast can remove const-ness
- References: <bug-31449-11271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <mark@codesourcery.com>
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