Mail Archives: djgpp/2000/04/14/20:11:19
----- Original Message -----
From: Nick Fleming <marmalade AT x-stream DOT co DOT uk>
To: <gnu AT prep DOT ai DOT mit DOT edu>
Sent: Saturday, April 15, 2000 1:40 AM
Subject: Possible GCC Bug
> Sorry about this but..
>
> I think I've found a tiny bug in GCC.
>
> (Version 2.95.2 19991024 (release)
>
> - while using djgpp's rhide program.
>
> A snippet from my code :
>
> 0xff, // 00000000 // [
> 0x3c, // 00111100
> 0x30, // 00110000
> 0x30, // 00110000
> 0x30, // 00110000
> 0x30, // 00110000
> 0x3c, // 00111100
> 0xff, // 00000000
>
> 0xff, // 00000000 // \
> 0x60, // 01100000
> 0x70, // 01110000
> 0x38, // 00111000
> 0x1c, // 00011100
> 0x0e, // 00001110
> 0x06, // 00000110
> 0x00, // 00000000
>
> 0xff, // 00000000 // ]
> 0x3c, // 00111100
> 0x0c, // 00001100
> 0x0c, // 00001100
> 0x0c, // 00001100
> 0x0c, // 00001100
> 0x3c, // 00111100
> 0x00, // 00000000
>
> In the above snippet of code, the second group of bytes has a row missing when
> compiled.. To correct it I have to write the first line as follows:
>
> 0xff, // 00000000 // '\'
>
> I think gcc's scanner is interpreting the slash as a special character, rather than just
> skipping it as it should as it is part of a single line comment.
>
> Hope this is some use, if not please pass it on to someone who needs to know
> this sort of thing. Thanks.
>
> Regards,
>
> Nick. F.
>
>
- Raw text -