gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnucap save prompt error


From: Felix Salfelder
Subject: Re: gnucap save prompt error
Date: Mon, 24 Aug 2020 12:55:12 +0200

On Sun, Aug 23, 2020 at 12:18:20PM +0200, patrick wrote:
> default plugins: cmake-4 2020.07.03
> gnucap> save
> file name?  abc.ckt
> gnucap: /home/pmu/projects/gnucap/gnucap/lib/ap_construct.cc:125: CS&
> CS::operator=(const string&): Assertion `!_file' failed.

a wild guess

--- a/lib/ap_construct.cc
+++ b/lib/ap_construct.cc
@@ -122,7 +122,7 @@ CS::CS(const CS& p)
 /*--------------------------------------------------------------------------*/
 CS& CS::operator=(const std::string& s)
 {untested();
-  assert(!_file);
+  assert(!is_file());
   _cmd = s;
   _cnt = 0;
   _ok = true;

NB: I noticed that cmake does not either build in production nor in debug mode.
This is always suboptimal. In production mode, you would not have noticed the
assertion (-DNDEBUG). and in debug mode, the "untested" would have appeared on
the screen (-DTRACE_UNTESTED).

cheers
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]