strange bug

Ralf Stephan ralf at ark.in-berlin.de
Sat Jul 10 11:50:39 CEST 2004


Hello,
the following program dumps core here.

#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;

int main()
{
  symbol x("x");

  ex e = (ex(1)/x).numer_denom();
  e = e[0];
  cerr << e; 
}

But it outputs 1 as it should if I replace the last two lines with
cerr << e[0];

I don't even understand the difference!


Thanks for your time,
ralf




More information about the GiNaC-devel mailing list