From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f76234be56454346 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "Martin Krischik" Newsgroups: comp.lang.ada Subject: Re: -gnatW8 and Ada.Numerics Date: 13 Jul 2006 22:49:56 -0700 Organization: http://groups.google.com Message-ID: <1152856196.900097.133940@h48g2000cwc.googlegroups.com> References: NNTP-Posting-Host: 138.189.120.38 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1152856201 19872 127.0.0.1 (14 Jul 2006 05:50:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 14 Jul 2006 05:50:01 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=138.189.120.38; posting-account=2-0LkQwAAAAQMhPSoYwlMiUmi-6lYh44 Xref: g2news2.google.com comp.lang.ada:5676 Date: 2006-07-13T22:49:56-07:00 List-Id: Y.Tomino schrieb: > Hello. > I take -gnatW8 switch to use UTF-8 string literal with gcc-4.1, also I > want to use Ada.Numerics package. > But compiler reports "illegal wide character" error. > > Test: > with Ada.Numerics; > procedure Test is > begin > null; > end Test; > > >gnatmake -gnat05 -gnatW8 test > gcc -c -gnat05 -gnatW8 test.adb > a-numeri.ads:24:04: illegal wide character > gnatmake: "test.adb" compilation error > > How should I do to compile it ? > It seems allowed by the document: > > UTF-8 encoding (brackets encoding also recognized) > (http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gnat_ugn_unw/Character-Set-Control.html) > > I tried with GNAT GPL 2006. > GNAT GPL 2006 can compile it. It is most likely a compiler bug. Bug in the gcc version of GNAT should be reported here: http://gcc.gnu.org/bugs.html Martin