This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18216] New: Different results when an array is statically/dynamically allocated


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]