c/7414: GCC 3.1 gens bad pointer arithmetic? SIGSEGV
Fri Jul 26 08:36:00 GMT 2002
>Synopsis: GCC 3.1 gens bad pointer arithmetic? SIGSEGV
>Arrival-Date: Fri Jul 26 08:26:00 PDT 2002
>Originator: K Black
>Release: gcc version 3.1
Windows XP Home, Cygwin
code appears to compile with no errors and no warnings.
But always produces SIGSEGV at run time
Line 10 (/* fails here */) appears to always fail with a segmentation fault (SIGSEGV?)?
printf("t before: %s\n",t);
t=' '; /* fails here */
printf("t afterwords: %s\n",t);
unknown - tried several variations on pointers and arrays
More information about the Gcc-bugs