Article View: gnu.gcc.bug
Article #6131Exception handling
From: Waye-Ian CHIEW
Date: Fri, 06 Dec 1996 00:00
Date: Fri, 06 Dec 1996 00:00
23 lines
902 bytes
902 bytes
Hello!
class General { };
class Specific : public General { };
int main () {
try {
throw New Specific;
}
catch ( General* general ) { }
}
This falls though without catching and aborts. Why doesn't gcc match the Specific object to General?
-- Ian!!
ASM programmers drive stick shifts.
Technical Details
Message-ID:
<199612060116.MAA09973@cat.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,b8592ac7ef932823,start X-Google-Attributes: gid113d02,public From: wchi@students.cs.mu.oz.au (Waye-Ian CHIEW) Subject: Exception handling Date: 1996/12/06 Message-ID: <199612060116.MAA09973@cat.cs.mu.OZ.AU> X-Deja-AN: 202595562 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset=US-ASCII x-gateway: relay6.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 5 Dec 1996 20:17:43 EST mime-version: 1.0 newsgroups: gnu.gcc.bug x-mailer: ELM [version 2.4 PL23]