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]

Re: \0ÿ in strings


On Sun, Feb 27, 2000 at 11:51:12AM +0100, Per Hedbor wrote:
> 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ÿ";

Thank you for your report.  This has not yet been fixed.  I have added
a test to our testsuite.

> 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.

You don't have to post the entire source of pike, just the
preprocessed source of the file that caused the problem.  Please
follow the instructions at the URL printed by the compiler.

zw

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