This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16219] Exception not caught
- From: "jss at ast dot cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2004 12:49:32 -0000
- Subject: [Bug c++/16219] Exception not caught
- References: <20040626152456.16219.jss@ast.cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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