This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18216] New: Different results when an array is statically/dynamically allocated
- From: "dkouroun at mailbox dot gr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2004 10:23:13 -0000
- Subject: [Bug c++/18216] New: Different results when an array is statically/dynamically allocated
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The README files in the tarball, show that when an array is declared
double V[N];
or
double* V = new double[N];
computations with values stored in that array give different results!
Should floating point calculations with values stored in an array
depend on the way that array has been allocated? Both g++-3.4.2
and icc-8.1.022 exhibit similar behaviour with icc being both more
accurate and much faster on a pentium4 Laptop.
--
Summary: Different results when an array is
statically/dynamically allocated
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dkouroun at mailbox dot gr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18216