This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
exception header file changes
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Subject: exception header file changes
- From: "Munro, Andrew" <Andrew dot Munro at Australia dot Boeing dot com>
- Date: Thu, 8 Nov 2001 10:34:39 +1000
Hi,
I have just upgraded from GCC 2.95.2 to GCC 3.0.2. I notice that the
exception header file has changed - the destructor has an
empty throw() spec.
This is causing me problems as derived exceptions from
std::exception must know also provided an empty throw() spec.
(the compiler gives an error of "looser throw specification" for the
derived class.
Is there any way around this other than by changing my code - such
as a compiler flag?
Thanks,
Andrew Munro
Software Engineer
Boeing Australia
(07) 3306-3567