segmentation fault on GiNaC-1.2.0 using MinGW on Win XP
Christian.Bauer at Uni-Mainz.DE
Thu Apr 8 15:57:35 CEST 2004
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?
/ Physics is an algorithm
More information about the GiNaC-devel