Talk About Network

Google





Programming > Ada > Re: Feature or ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 13 Topic 5736 of 6006
Post > Topic >>

Re: Feature or Bug? 2#1111# ****fted by 4 is 224

by Tero Koskinen <tero.koskinen@[EMAIL PROTECTED] > Jun 4, 2008 at 06:36 AM

On Mon, 02 Jun 2008 19:59:33 +0200 Ludovic Brenta wrote:
> Tero Koskinen <tero.koskinen@[EMAIL PROTECTED]
> writes:
> > On Mon, 02 Jun 2008 17:17:19 +0200 Dennis Hoppe wrote:
> >> In Example B, we limit the parameter N to Positive, because we do not

> >> want "negative" ****fts. The result of ****ft_Left(2#1111#, 4) is 224
> >> (2#11100000#) !
> >
> > type Modular_Type is mod 2**4;
> > function ****ft_Left (Item : in Modular_Type;
> >                      N    : in Positive) return Modular_Type is
> > begin
> >    return Item * (2**N);
> > end ****ft_Left;
> 
> This looks like http://gcc.gnu.org/PR30740
which is fixed in Debian
> unstable :)
> 
> Could you confirm that this is the same bug indeed?

Applying org.debian.gcc-4.3/debian/patches/pr30740.dpatch (from
ada-france.org server) solves the problem for me (GCC 4.3.0,
OpenBSD/i386 as earlier). On Solaris the compiler used -gnato and
-fstack-check flags by default, so the bug didn't occur there.

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/
 




 13 Posts in Topic:
Feature or Bug? 2#1111# shifted by 4 is 224
Dennis Hoppe <dennis.h  2008-06-02 17:17:19 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Tero Koskinen <tero.ko  2008-06-02 19:11:45 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Ludovic Brenta <ludovi  2008-06-03 01:10:25 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Adam Beneschan <adam@[  2008-06-03 10:56:13 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
"Jeffrey R. Carter&q  2008-06-03 19:39:18 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Ludovic Brenta <ludovi  2008-06-02 19:59:33 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Dennis Hoppe <dennis.h  2008-06-02 20:52:26 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
"Jeffrey R. Carter&q  2008-06-03 00:51:29 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Gautier <gautier@[EMAI  2008-06-03 06:26:02 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
"Jeffrey R. Carter&q  2008-06-03 19:36:52 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Samuel Tardieu <sam@[E  2008-06-03 14:59:25 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Gautier <gautier@[EMAI  2008-06-03 00:32:33 
Re: Feature or Bug? 2#1111# shifted by 4 is 224
Tero Koskinen <tero.ko  2008-06-04 06:36:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 14:10:33 PST 2009.