[Bug c++/28357] New: c-style downcasts on const multiple inherited objects differ if const vs non-const cast
caolanm at redhat dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 12 12:51:00 GMT 2006
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
More information about the Gcc-bugs
mailing list