This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/8793: Simple code results in "numeric constant contains digits beyond the radix"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]