Search Issue Tracker

Duplicate

Votes

0

Found in

2018.3.13f1

2019.1.0f2

2019.2.0b1

2019.3.0a3

Issue ID

1150678

Regression

Yes

[IL2CPP] "goto" fails to jump to specified label in Unity Player

IL2CPP

-

When the C# script is written in a certain way, a goto would not jump to the specified label and fall through instead. Only IL2CPP is affected.

Steps:
1. Open attached project ("goto bug.zip")
2. Project settings > set Scripting Backend to IL2CPP
3. Build and Run

Expected: "goto" jumps to the specified label and there is no text flashing without a pattern in the center of the game view.
Actual: "goto" doesn't jump, there's a flashing text "But we just got something other than 1" in the center of the game view.

Reproduced with: 2018.3.13f1, 2018.4.0f1, 2019.1.0f2, 2019.2.0b1, 2019.3.0a3.
Not Reproduced with: 2017.4.28f1 (due to errors in the console), 2018.3.12f1, 2019.1.0b9

Reproduced with:
VLNQA00122, Samsung Galaxy S9 (SM-G960F), Android 8.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00257, Sony Xperia XZ Premium (G8141), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00139, Vivo Xplay6 (vivo Xplay6), Android 7.1.1, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
Macbook Pro 2015, macOS10.14
iPhone 8 Plus, iOS11.0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.