This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
\0ÿ in strings
- To: gcc-bugs at gcc dot gnu dot org
- Subject: \0ÿ in strings
- From: Per Hedbor <per at idonex dot se>
- Date: Sun, 27 Feb 2000 11:51:12 +0100 (MET)
The newest snapshot version of gcc gives errors when it encounters a ÿ
after encountering a \0 in a string:
test.c:1: Unterminated string constant
test.c:2: Unterminated string constant
test.c:2: parse error at end of input
The whole contents of 'test.c' is:
unsigned char *f = "\0ÿ";
Another bug encountered is:
/export/local/src/Pike/0.7-beta/src/modules/Image/encodings/_xpm.c: In function `decode_color':
/export/local/src/Pike/0.7-beta/src/modules/Image/encodings/_xpm.c:133: Internal compiler error in `find_reloads', at reload.c:3656
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
As for the full bug report: The source of pike is rather
large. Actually, it is way to large to post here.
The error only occurs when compiling with -O2