spam/3568: C++ exception handling error

ljrittle@gcc.gnu.org ljrittle@gcc.gnu.org
Thu Jul 5 12:21:00 GMT 2001


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



More information about the Gcc-bugs mailing list