This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28357] New: c-style downcasts on const multiple inherited objects differ if const vs non-const cast
- From: "caolanm at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2006 12:51:10 -0000
- Subject: [Bug c++/28357] New: c-style downcasts on const multiple inherited objects differ if const vs non-const cast
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
i.e. the attached test case with
> gcc (GCC) 4.1.1 20060629 (Red Hat 4.1.1-6) and
> gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
gives...
New-Style Correct: const 0xbfdb3d2c, unconst 0xbfdb3d2c
Old-Style Correct: const 0xbfdb3d2c, unconst 0xbfdb3d2c
Old-Style Incorrect: const 0xbfdb3d2c, unconst 0xbfdb3d28
where the final value here should be the same as the rest of them
--
Summary: c-style downcasts on const multiple inherited objects
differ if const vs non-const cast
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: caolanm at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28357