This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31449] [4.1/4.2/4.3 regression] static_cast can remove const-ness



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]