Article View: gnu.g++.bug
Article #685backward error message
From: Paul Vaughan
Date: Wed, 06 Dec 1989 17:45
Date: Wed, 06 Dec 1989 17:45
22 lines
898 bytes
898 bytes
The following source
-----------------------
struct base {
void foo() {}
};
struct derived {
void foo() { base::foo(); } // line 6
};
main() {}
-------------------------
gives this error message
errmsg.cc: In method void derived::foo ():
errmsg.cc:6: type `base' not derived from type `derived'
So who cares? What is more important is that type derived is not
derived from type base. It wouldn't help if type base were derived
from type derived.
Technical Details
Message-ID:
<8912061745.AA12598@puma.cad.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!MCC.COM!vaughan%cadillac.cad.mcc.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!MCC.COM!vaughan%cadillac.cad.mcc.com From: vaughan%cadillac.cad.mcc.com@MCC.COM (Paul Vaughan) Newsgroups: gnu.g++.bug Subject: backward error message Message-ID: <8912061745.AA12598@puma.cad.mcc.com> Date: 6 Dec 89 17:45:11 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22