🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6136

Re: Exception handling

#6136
From: Andreas Schwab
Date: Fri, 06 Dec 1996 00:00
22 lines
1186 bytes
Waye-Ian CHIEW <wchi@students.cs.mu.oz.au> writes:

|> 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?

Without -frtti gcc only supports exact matches for catched objects.
-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
Technical Details
Message-ID: <vyzhgm0as5z.fsf@issan.informatik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <199612060116.MAA09973@cat.cs.mu.OZ.AU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,b8592ac7ef932823
X-Google-Attributes: gid113d02,public
From: schwab@issan.informatik.uni-dortmund.de (Andreas Schwab)
Subject: Re: Exception handling
Date: 1996/12/06
Message-ID: <vyzhgm0as5z.fsf@issan.informatik.uni-dortmund.de>
X-Deja-AN: 202663243
sender: schwab@issan.informatik.uni-dortmund.de
references: <199612060116.MAA09973@cat.cs.mu.OZ.AU>
organization: Dortmund University, Germany
x-gateway: relay6.UU.NET from bug-gcc to gnu.gcc.bug; Fri, 6 Dec 1996 05:22:55 EST
newsgroups: gnu.gcc.bug