Missing type-characteristic checks #5274
Labels
during 3: execution of incorrect program
An bug in the verifier that allows Dafny to run a program that does not correctly implement its spec
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: resolver
Resolution and typechecking
Dafny version
4.6.0
Code to produce this issue
Command to run and resulting output
What happened?
Type
Pair
says that its type parameter must support equality in compiled contexts. The type(int, ghost int)
does not support equality in compiled context, so it should not be possible to use that type as the type argument toPair
. Alas, those checks are missing for theDatatypeValue
AST nodes. The program should have been rejected by the resolver, but instead sails through both the verifier and compiler and ends up in a run-time crash.What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: