Skip to content

Wrong code generation in case statement

Summary

The condition in case statement evaluates twice in certain cases.

System Information

  • Operating system: Alt.Linux 10.1
  • Processor architecture: x86-64
  • Compiler version: 3.3.1
  • Device: PC

Steps to reproduce

Run attached example.

Example Project

example.zip

What is the current bug behavior?

The HandleEntityReference method calls twice: issue

What is the expected (correct) behavior?

The HandleEntityReference method must be called just once

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information