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

[Bug c++/16219] Exception not caught


------- Additional Comments From jss at ast dot cam dot ac dot uk  2004-06-27 12:49 -------
None of the functions in the code have exception specifications - so the code
should expect any exception can be thrown.

There isn't any code outside the try block. All the file handling is inside.

One thought is that the library used by the code (CFITSIO) might mess up the
call stack (though it is written in standard C). I tried running the code with
valgrind, but it couldn't detect any errors.

If you want to try the (small) code download
http://www-xray.ast.cam.ac.uk/~jss/data/gcc-except.tar.gz  (13KB)

To compile the code use the Makefile. Unfortunately you need to have the
following to libraries installed:

Blitz++:      http://www.oonumerics.org/blitz/
CFITSIO:      http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html

They're both fairly easy to build, however.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16219


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