mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
fix #5272
This commit is contained in:
parent
d2bd92eab9
commit
1a432529dd
1 changed files with 2 additions and 1 deletions
|
@ -879,8 +879,9 @@ void cmd_context::insert(symbol const & s, func_decl * f) {
|
|||
void cmd_context::insert(symbol const & s, psort_decl * p) {
|
||||
pm().inc_ref(p);
|
||||
if (m_psort_decls.contains(s)) {
|
||||
symbol _s = s;
|
||||
pm().dec_ref(p);
|
||||
throw cmd_exception("sort already defined ", s);
|
||||
throw cmd_exception("sort already defined ", _s);
|
||||
}
|
||||
m_psort_decls.insert(s, p);
|
||||
if (!m_global_decls) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue