delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/14/20:11:19

Message-ID: <000f01bfa673$a9e573e0$0100a8c0@amanda>
From: "Nick Fleming" <marmalade AT x-stream DOT co DOT uk>
To: <djgpp AT delorie DOT com>
Subject: Fw: Possible GCC Bug
Date: Sat, 15 Apr 2000 01:43:48 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019