[GiNaC-list] cln::notreached_exception

Dario Pellegrini pellegrini.dario at gmail.com
Mon Jan 4 21:39:19 CET 2021


Oh my bad, I forgot to evalf()
Quite a misleading exception message.
Sorry for the noise anyway.

Il giorno lun 4 gen 2021 alle ore 20:53 Dario Pellegrini <
pellegrini.dario at gmail.com> ha scritto:

> I am on v1.8.0, I have no experience with older versions.
> This trivial program results in a cln::notreached_exception being thrown.
>
> #include <ginac/ginac.h>
>> int main() {
>>   GiNaC::ex a = GiNaC::Pi;
>>   GiNaC::ex b = 1;
>>   std::cout << GiNaC::ex_to<GiNaC::numeric>(a+b).to_double() << std::endl;
>>   return 0;
>> }
>
>
> Compiled with:
>
> g++ test.cpp -lginac -lcln
>
>
> Here is the full exception message:
>
> what():  Internal error: statement in file real/conv/cl_R_to_double.cc,
>> line 48 has been reached!!
>> Please send the authors of the program a description how you produced
>> this error!
>
>
> I would expect that to work, am I wrong?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ginac.de/pipermail/ginac-list/attachments/20210104/3aa847a3/attachment.htm>


More information about the GiNaC-list mailing list