This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: spam/3568: C++ exception handling error
- To: bwh276 at sinamail dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: spam/3568: C++ exception handling error
- From: ljrittle at gcc dot gnu dot org
- Date: 5 Jul 2001 19:21:51 -0000
Synopsis: C++ exception handling error
State-Changed-From-To: open->closed
State-Changed-By: ljrittle
State-Changed-When: Thu Jul 5 12:21:51 2001
State-Changed-Why:
Not a bug. const is honored with the throw-catch
mechanism under C++. Since you are throwing a const
char*, you must catch const char* instead of char*.
You are getting the default exception handler.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3568&database=gcc