![]() |
Blitz Bugs : |
From: Creon Levit (creon_at_[hidden])
Date: 2003-12-02 22:29:39
/*
* compile with no optimization and this program works.
* compile with optimization -O1 or higher, and it dumps core
*
* this is true using blitz++-0.7 on Red Hat linux 8.0 and Apple OSX
10.3
* g++ (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
* g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
*/
#include <iostream.h>
#include <blitz/array.h>
int main ()
{
blitz::Array<float,1> xypoints(10);
xypoints(blitz::Range(0,1)) = 0;
xypoints(blitz::Range(0,1)) = 0; // dumps core here if compiled with
-O1 or higher
cout << "finished" << endl;
}