comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Krischik" <krischik@users.sourceforge.net>
Subject: Re: -gnatW8 and Ada.Numerics
Date: 13 Jul 2006 22:49:56 -0700
Date: 2006-07-13T22:49:56-07:00	[thread overview]
Message-ID: <1152856196.900097.133940@h48g2000cwc.googlegroups.com> (raw)
In-Reply-To: <e960mo$56c$1@news521.nifty.com>

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




  reply	other threads:[~2006-07-14  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 17:42 -gnatW8 and Ada.Numerics Y.Tomino
2006-07-14  5:49 ` Martin Krischik [this message]
2006-07-14 12:28   ` Björn Persson
2006-07-14 13:05     ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox