This is the mail archive of the
mailing list for the GCC project.
-Wwritestrings affects exceptions
- To: egcs-bugs at cygnus dot com
- Subject: -Wwritestrings affects exceptions
- From: Jim McKelvey <mckelvey at solstice dot jpl dot nasa dot gov>
- Date: Fri, 14 Aug 1998 09:02:47 -0700
I'm sending this again, because the nature of the bug was misunderstood by
> int main(void)
catch (char * e)
fprintf(stderr, "%s\n", e);
If -Wwritestrings is specified, this works correctly, and the exception is
If -Wwritestrings is NOT specified, the exception is caught.
If a const is added to the catch, it catches properly in both cases.
Sparc Ultra-2, egcs-1.0.3a.
James W. McKelvey