[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] GCC bug?
From: |
Ethan Eade |
Subject: |
[Toon-members] GCC bug? |
Date: |
Fri, 01 Aug 2008 19:21:41 +0100 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20071114) |
Using gcc 4.3.1, the following code does not give correct output if
using -02 optimization or greater.
Turning down the optimization (or even adding more lines) will make it
work. Is this a compiler bug?
- Ethan
#include <TooN/TooN.h>
using namespace TooN;
using namespace std;
int main()
{
Vector<2> x = (make_Vector, 1,2);
double w = 1.0;
cerr << (w * x.as_col()) * x.as_row() << endl;
}
- [Toon-members] GCC bug?,
Ethan Eade <=