[Bug c++/16219] Exception not caught
jss at ast dot cam dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Sun Jun 27 13:47:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list