public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21473] New: Number Representation - Octal
@ 2005-05-09 17:02 robert dot amodeo at ntlworld dot com
  2005-05-09 17:07 ` [Bug c/21473] " pinskia at gcc dot gnu dot org
  2005-05-10  0:22 ` robert dot amodeo at ntlworld dot com
  0 siblings, 2 replies; 3+ messages in thread
From: robert dot amodeo at ntlworld dot com @ 2005-05-09 17:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/21473] Number Representation - Octal
  2005-05-09 17:02 [Bug c/21473] New: Number Representation - Octal robert dot amodeo at ntlworld dot com
@ 2005-05-09 17:07 ` pinskia at gcc dot gnu dot org
  2005-05-10  0:22 ` robert dot amodeo at ntlworld dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 17:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 17:07 -------
Not in charactors. '/xx' is octal aways.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/21473] Number Representation - Octal
  2005-05-09 17:02 [Bug c/21473] New: Number Representation - Octal robert dot amodeo at ntlworld dot com
  2005-05-09 17:07 ` [Bug c/21473] " pinskia at gcc dot gnu dot org
@ 2005-05-10  0:22 ` robert dot amodeo at ntlworld dot com
  1 sibling, 0 replies; 3+ messages in thread
From: robert dot amodeo at ntlworld dot com @ 2005-05-10  0:22 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-10  0:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 17:02 [Bug c/21473] New: Number Representation - Octal robert dot amodeo at ntlworld dot com
2005-05-09 17:07 ` [Bug c/21473] " pinskia at gcc dot gnu dot org
2005-05-10  0:22 ` robert dot amodeo at ntlworld dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).