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] New: c-style downcasts on const multiple inherited objects differ if const vs non-const cast


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


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