public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bero@arklinux.org To: gcc-gnats@gcc.gnu.org Subject: c++/10509: Problems w/ casting to base classes of classes with multiple inheritance Date: Sat, 26 Apr 2003 19:16:00 -0000 [thread overview] Message-ID: <20030426191535.14574.qmail@sources.redhat.com> (raw) >Number: 10509 >Category: c++ >Synopsis: Problems w/ casting to base classes of classes with multiple inheritance >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Apr 26 19:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: bero@arklinux.org >Release: gcc-3_3-branch as of 2003/04/26 >Organization: >Environment: Linux 2.4.21rc1, glibc 2.3.2 >Description: The attached code outputs "bbb" instead of the expected "bbc". (c->foo() should return "c") >How-To-Repeat: Compile and run the attached code >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="gccbug.cxx" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gccbug.cxx" I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQQp7CnB1Ymxp YzoKCXZpcnR1YWwgc3RyaW5nIHRlc3QoKSB7IHJldHVybiAiYSI7IH0KfTsKCmNsYXNzIEI6cHVi bGljIEEKewpwdWJsaWM6Cgl2aXJ0dWFsIHN0cmluZyB0ZXN0KCkgeyByZXR1cm4gImIiOyB9Cn07 CgpjbGFzcyBDCnsKcHVibGljOgoJdmlydHVhbCBzdHJpbmcgZm9vKCkgeyBjZXJyIDw8ICJyZXR1 cm5pbmcgYyIgPDwgZW5kbDsgcmV0dXJuICJjIjsgfQp9OwoKY2xhc3MgRDpwdWJsaWMgQixDCnsK fTsKCQkKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKiphcmd2KQp7CglEICpkPW5ldyBEKCk7Cglj ZXJyIDw8IGQtPnRlc3QoKSA8PCBkLT5mb28oKSA8PCBlbmRsOwoJQSAqYT0oQSopbmV3IEQoKTsK CUIgKmI9KEIqKWE7CglDICpjPShDKilhOwoJY2VyciA8PCBhLT50ZXN0KCkgPDwgYi0+dGVzdCgp IDw8IGMtPmZvbygpIDw8IGVuZGw7Cn0K
next reply other threads:[~2003-04-26 19:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-26 19:16 bero [this message] 2003-04-28 14:13 bangerth
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030426191535.14574.qmail@sources.redhat.com \ --to=bero@arklinux.org \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).