Go "continue" miscompilation error #3978
Labels
invalid translated code
The compiler generates invalid code, making the the target language infrastructure crash
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
lang: golang
Dafny's transpiler to Go and its runtime
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Dafny version
4.1.0
Code to produce this issue
Command to run and resulting output
What happened?
Compiling with a continue within a for loop in Go leads to the message shown above. This error does not occur in any other language. I would expect this program to compile correctly as the continue is wrapped in an if (false) statement and hence all code below the if should be able to be compiled as it would be run.
What type of operating system are you experiencing the problem on?
Linux
The text was updated successfully, but these errors were encountered: