comp.lang.ada
 help / color / mirror / Atom feed
* -gnatW8 and Ada.Numerics
@ 2006-07-13 17:42 Y.Tomino
  2006-07-14  5:49 ` Martin Krischik
  0 siblings, 1 reply; 4+ messages in thread
From: Y.Tomino @ 2006-07-13 17:42 UTC (permalink / raw)


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.

-- 
YT



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

* Re: -gnatW8 and Ada.Numerics
  2006-07-13 17:42 -gnatW8 and Ada.Numerics Y.Tomino
@ 2006-07-14  5:49 ` Martin Krischik
  2006-07-14 12:28   ` Björn Persson
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Krischik @ 2006-07-14  5:49 UTC (permalink / raw)


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




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

* Re: -gnatW8 and Ada.Numerics
  2006-07-14  5:49 ` Martin Krischik
@ 2006-07-14 12:28   ` Björn Persson
  2006-07-14 13:05     ` Ludovic Brenta
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Persson @ 2006-07-14 12:28 UTC (permalink / raw)


Martin Krischik wrote:
> Y.Tomino schrieb:
> 
>> 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.
[...]
>> 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

Well, yes, but if it works in GNAT GPL 2006 then apparently the bug has 
already been fixed. The fix should get into GCC at the next merge, so 
it's not so important to report this.

-- 
Bj�rn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu



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

* Re: -gnatW8 and Ada.Numerics
  2006-07-14 12:28   ` Björn Persson
@ 2006-07-14 13:05     ` Ludovic Brenta
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Brenta @ 2006-07-14 13:05 UTC (permalink / raw)


Björn Persson a écrit :
> Well, yes, but if it works in GNAT GPL 2006 then apparently the bug has
> already been fixed. The fix should get into GCC at the next merge, so
> it's not so important to report this.

I disagree.  All bugs should be reported and tracked in a database, no
matter what.

- Someone might find a workaround.
- People use GCC 4.1 and upgrading to GNAT GPL 2006 might not be an
option for everyone.
- GCC 4.1 is the current, production version of GCC. Even if it
weren't, this information is useful and valuable to all people who use
GCC 4.1 (or previous versions, if they also have the bug) for the years
to come.

-- 
Ludovic Brenta.




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

end of thread, other threads:[~2006-07-14 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 17:42 -gnatW8 and Ada.Numerics Y.Tomino
2006-07-14  5:49 ` Martin Krischik
2006-07-14 12:28   ` Björn Persson
2006-07-14 13:05     ` Ludovic Brenta

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