This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

\0ÿ in strings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]