segmentation fault on GiNaC-1.2.0 using MinGW on Win XP

Christian Bauer Christian.Bauer at Uni-Mainz.DE
Thu Apr 8 15:57:35 CEST 2004


Hi!

On Wed, Apr 07, 2004 at 01:28:29PM +0200, Johannes Brunen wrote:
> However, the initilaization of the const _num0 reference happens at some
> time later. Therefore it is undefined at the point of usage in the
> ex::construct_from_int(int i) call from function_options::initialize().

Ah, of course. This explains it. The ex() default ctor uses _num0_bp
directly, so static ex objects are always initialized correctly as long
as you're only using the default ctor.

Maybe the ex::construct_from_*() functions should also use the _num*_bp
pointers instead of the references?

Bye,
Christian

-- 
  / Physics is an algorithm
\/ http://www.uni-mainz.de/~bauec002/



More information about the GiNaC-devel mailing list