This is the mail archive of the gcc-help@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]

Re: g++: Exception handling in constructor


Hi,

On Tue, Dec 10, 2002 at 04:25:27PM -0800, Gokhan Kisacikoglu wrote:

> This is not throwing that exception

What do you mean with "not throwing that exception"? The example throws                                  
"too much" exceptions, because the Exception from the Bad constructor is                                 
caught in the constructor of Test class _and_ is re-thrown to the main                                   
function. This does IMHO not comply to the standart -- because unwanted                                  
re-throwing does not make sense. So it is probably a bug, but I did not                                  
find anything about it in the gcc bug database...   
-- 
Frank Grimm // fgr@foobar-cpa.de
            // www.foobar-cpa.de


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