Skip to content

Commit

Permalink
fix #3958
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Apr 14, 2020
1 parent 387964f commit d7d6877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ast/datatype_decl_plugin.cpp
Expand Up @@ -1140,7 +1140,8 @@ namespace datatype {
TRACE("util_bug", tout << "invoke get-non-rec: " << sort_ref(ty, m) << "\n";);
cd = get_non_rec_constructor_core(ty, forbidden_set);
SASSERT(forbidden_set.back() == ty);
SASSERT(cd.first);
if (!cd.first) // datatypes are not completed on parse errors
throw default_exception("constructor not available");
return cd.first;
}

Expand Down

0 comments on commit d7d6877

Please sign in to comment.