public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8793: Simple code results in "numeric constant contains digits beyond the radix"
@ 2002-12-03  6:16 hugo
  0 siblings, 0 replies; 2+ messages in thread
From: hugo @ 2002-12-03  6:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8793
>Category:       c
>Synopsis:       Simple code results in "numeric constant contains digits beyond the radix"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 03 06:16:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     hugo@adept.co.za
>Release:        3.2 20020903 (Red Hat Linux 8.0 3.2-7)   as well as   2.96 20000731 (Red Hat Linux 7.3 2.96-110)
>Organization:
>Environment:
Redhat Linux, 8.0, and 7.3

Both g++ and gcc
>Description:
This says it all.

$ g++ test.cc
test.cc:6: numeric constant contains digits beyond the radix
test.cc:6: numeric constant contains digits beyond the radix
test.cc:6: numeric constant contains digits beyond the radix
test.cc:7: numeric constant contains digits beyond the radix
test.cc:7: numeric constant contains digits beyond the radix
test.cc:7: numeric constant contains digits beyond the radix


Source code:

============test.cc==================

unsigned int bug[60] =
 { 07, 04, 00, 01, 01,  02, 03, 01, 01, 00,
   01, 01, 02, 02, 01,  00, 00, 00, 00, 00,
   00, 12, 12, 13, 15,  05, 04, 03, 11, 12,
   13, 15, 05, 04, 04,  01, 02, 01, 03, 03,
   02, 02, 09, 10, 09,  11, 07, 06, 06, 09,
   09, 08, 08, 04, 04,  04, 02, 02, 01, 00};

>How-To-Repeat:
Simply try and compile that array ...
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c/8793: Simple code results in "numeric constant contains digits beyond the radix"
@ 2002-12-03  6:23 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-12-03  6:23 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, hugo, nobody

Synopsis: Simple code results in "numeric constant contains digits beyond the radix"

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Dec  3 06:23:35 2002
State-Changed-Why:
    not a bug. 08 and 09 are invalid octal 

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8793


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

end of thread, other threads:[~2002-12-03 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03  6:16 c/8793: Simple code results in "numeric constant contains digits beyond the radix" hugo
2002-12-03  6:23 nathan

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