[GiNaC-devel] Why does this program crash?

Jan Rheinländer jrheinlaender at gmx.de
Fri May 13 19:16:29 CEST 2016


Hi,

I condensed my previous post on subclassing symbol into this little
program, which crashes at the last line. Any idea why? Is it a bug or do
I just not understand C++ inheritance?

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

     int main()
     {
        symbol x("x");
        x = realsymbol("y");
        cout << x << endl;
     }

Jan



More information about the GiNaC-devel mailing list