Re: OT: g++ ignoring try/catch blocks?

2011-12-27 Thread hvw59601
Roger Leigh wrote: On Tue, Dec 27, 2011 at 08:16:00AM -0600, Nate Bargmann wrote: I am working through a C++ tutorial and have arrived at the chapter on exception handling. The example program sets up a try{} catch() {} set of blocks for catching a divide by zero exception. The problem is

Re: OT: g++ ignoring try/catch blocks?

2011-12-27 Thread Roger Leigh
On Tue, Dec 27, 2011 at 08:16:00AM -0600, Nate Bargmann wrote: I am working through a C++ tutorial and have arrived at the chapter on exception handling. The example program sets up a try{} catch() {} set of blocks for catching a divide by zero exception. The problem is that g++ on Sid is

Re: OT: g++ ignoring try/catch blocks?

2011-12-27 Thread Roger Leigh
On Tue, Dec 27, 2011 at 09:36:10AM -0600, Nate Bargmann wrote: As a bit of background, the tutorial is written some years ago and I have found the C++ standard has tightened a few things which has enhanced my learning! Also, the author uses MS VC++ even though the book is aimed at the C++

Re: OT: g++ ignoring try/catch blocks?

2011-12-27 Thread Nate Bargmann
Indeed, Roger, an excellent explanation. Thank you very much. As a bit of background, the tutorial is written some years ago and I have found the C++ standard has tightened a few things which has enhanced my learning! Also, the author uses MS VC++ even though the book is aimed at the C++

OT: g++ ignoring try/catch blocks?

2011-12-27 Thread Nate Bargmann
I am working through a C++ tutorial and have arrived at the chapter on exception handling. The example program sets up a try{} catch() {} set of blocks for catching a divide by zero exception. The problem is that g++ on Sid is quitting at the divide by zero statement and seemingly ignoring the