public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13009] New: Implicitly-defined assignment operator writes to wrong memory
@ 2003-11-11 15:38 oldfishdontdie at hotmail dot com
  2003-11-11 15:46 ` [Bug c++/13009] " oldfishdontdie at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: oldfishdontdie at hotmail dot com @ 2003-11-11 15:38 UTC (permalink / raw)
  To: gcc-bugs

In a class that virtually inherits another class, the implicitly-defined 
assignment operator copies the object to the wrong location when called for an 
object of a more derived class.
The attached example, when compiled with g++-3.3.1/g++-3.3.2, prints out "cb" 
instead of "bc".

-- 
           Summary: Implicitly-defined assignment operator writes to wrong
                    memory
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oldfishdontdie at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-21  5:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 15:38 [Bug c++/13009] New: Implicitly-defined assignment operator writes to wrong memory oldfishdontdie at hotmail dot com
2003-11-11 15:46 ` [Bug c++/13009] " oldfishdontdie at hotmail dot com
2003-11-11 16:29 ` [Bug c++/13009] [3.3/3.4 regression] " bangerth at dealii dot org
2003-12-24 21:57 ` gdr at gcc dot gnu dot org
2003-12-29  2:42 ` cvs-commit at gcc dot gnu dot org
2003-12-29  2:44 ` [Bug c++/13009] [3.3 " mmitchel at gcc dot gnu dot org
2004-01-01  0:17 ` gdr at integrable-solutions dot net
2004-01-21  3:39 ` dhazeghi at yahoo dot com
2004-01-21  5:04 ` gdr at gcc dot gnu dot org
2004-01-21  5:04 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).