[Bug c/21473] New: Number Representation - Octal

2005-05-09 Thread robert dot amodeo at ntlworld dot com
This bug was reported back in 1998/07/19 by Alexander Favorov msg00504.html . 
It is well described by him. The bug still exists as of gcc 3.3.3 . 
Its a simple parsing error. 
My understanding of C is: 
'\10' is ten (decimal) 
'\010' is eight (octal) 
'\0x10' is sixteen (hexadecimal) 
For a number to be octal, it must be preceeded by a zero, otherwise it is 
decimal. 
Book Reference: C: The Complete Reference 3rd Edition 
Author: Schildt, Herbert 
Page 37.

-- 
   Summary: Number Representation - Octal
   Product: gcc
   Version: 3.3.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: robert dot amodeo at ntlworld dot com
CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21473


[Bug c/21473] Number Representation - Octal

2005-05-09 Thread robert dot amodeo at ntlworld dot com

--- Additional Comments From robert dot amodeo at ntlworld dot com  
2005-05-10 00:22 ---
Yes, your right.
To be fair to the author Herbert Schildt, he mentions this in table 2.2 on 
page 38 of his book.
This is not a bug.
Sorry.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21473