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]

c++/10600: method lookup does not work correctly in dervied classes with virtual methods


>Number:         10600
>Category:       c++
>Synopsis:       method lookup does not work correctly in dervied classes with virtual methods
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 08:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     ctron@dentrassi.de
>Release:        gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
>Organization:
>Environment:
REDHAT 9
>Description:
See the attachments. The section "Problem" should work but does not.
>How-To-Repeat:
compile section "Problem" of the attachment
>Fix:
Use the workaround of the section "Workaround" in the attachment
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="inh_1.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="inh_1.cc"

Ci8vIC0tLS0tLS0tLT4+Pj4+Pj4+Pj4+PiBQcm9ibGVtCgojaW5jbHVkZSA8aW9zdHJlYW0+Cgpj
bGFzcyBBIHsKcHVibGljOgogIHZpcnR1YWwgdm9pZCB0ZXN0ICggdm9pZCApID0gMDsKfTsKCmNs
YXNzIEIgOiBwdWJsaWMgQSB7CnB1YmxpYzoKICB2aXJ0dWFsIHZvaWQgdGVzdCAoIHZvaWQgKQog
IHsKICAgIHRlc3QgKCAxICk7CiAgfQogIHZpcnR1YWwgdm9pZCB0ZXN0ICggaW50IGkgKSA9IDA7
Cn07CgpjbGFzcyBDIDogcHVibGljIEIgewpwdWJsaWM6CiAgdmlydHVhbCB2b2lkIHRlc3QgKCBp
bnQgaSApCiAgewogICAgc3RkOjpjb3V0IDw8ICJpID0gIiA8PCBpIDw8IHN0ZDo6ZW5kbDsKICB9
Cn07CgppbnQgbWFpbiAoIGludCBhcmdjLCBjaGFyICogYXJndltdICkKewogIEMgYzsKICBjLnRl
c3QgKCk7Cn0KCi8vIC0tLS0tLS0tLT4+Pj4+Pj4+Pj4+PiBXb3JrYXJvdW5kCgoKI2luY2x1ZGUg
PGlvc3RyZWFtPgoKY2xhc3MgQSB7CnB1YmxpYzoKICB2aXJ0dWFsIHZvaWQgdGVzdCAoIHZvaWQg
KSA9IDA7Cn07CgpjbGFzcyBCIDogcHVibGljIEEgewpwdWJsaWM6CiAgdmlydHVhbCB2b2lkIHRl
c3QgKCB2b2lkICkKICB7CiAgICB0ZXN0XzEgKCAxICk7CiAgfQogIHZpcnR1YWwgdm9pZCB0ZXN0
XzEgKCBpbnQgaSApID0gMDsKfTsKCmNsYXNzIEMgOiBwdWJsaWMgQiB7CnB1YmxpYzoKICB2aXJ0
dWFsIHZvaWQgdGVzdF8xICggaW50IGkgKQogIHsKICAgIHN0ZDo6Y291dCA8PCAiaSA9ICIgPDwg
aSA8PCBzdGQ6OmVuZGw7CiAgfQp9OwoKaW50IG1haW4gKCBpbnQgYXJnYywgY2hhciAqIGFyZ3Zb
XSApCnsKICBDIGM7CiAgYy50ZXN0ICgpOwp9Cg==


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