This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/23514] fixed point error cause Ada exception block does NOT work
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2005 20:01:43 -0000
- Subject: [Bug ada/23514] fixed point error cause Ada exception block does NOT work
- References: <20050822103814.23514.kuan_long@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From laurent at guerby dot net 2005-08-22 20:01 -------
With 4.1.0 20050822 (experimental) on x86-linux, I get as output
27 times "average: 10.00" followed by three times "average:error here!"
which seems the correct behaviour since you do for the three last iterations:
Avg := Sum / Data'Length;
with Data'Length = Index = 0
So you get a division by zero exception.
Is the mingw behaviour different, or am I missing something obvious in your code?
Laurent
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23514