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++/28357] [4.0/4.1/4.2 regression] c-style downcasts on const multiple inherited objects differ if const vs non-const cast



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-07-12 17:39 -------
Hmm:
  SdOptionsPrint &rOldUnconst = (SdOptionsPrint&)(rOther);

Looks like that is we are saying this is a reinterpret_cast.
Related to PR 22132.
I bet the fix for PR 22132, just needs to be expanded for reference types also.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |22132
           Keywords|                            |wrong-code
   Target Milestone|---                         |4.0.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28357


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