Search Issue Tracker
Third Party Issue
Votes
0
Found in
2021.3.35f1
2022.3.20f1
2023.2.12f1
2023.3.0b9
Issue ID
UUM-65047
Regression
No
Unexpected overwriting of local variable values when copying multiple static readonly fields into the same local variable if reading the fields and getting references to them in C#
How to reproduce:
1. Open the user’s attached “CompilerBug.zip” project
2. Press Menu > Tools > Test Bug
3. Observe the Console window
Expected result: the third log is A ref data: 0, 3, 7, 4
Actual result: the third log is A ref data: 1, 2, 6, 5
Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.12f1, 2023.3.0b9
Reproduced on: macOS 14.2.1 (Intel)
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
- Dynamic text is rendered in the background when it is inside the <font> tag
Resolution Note:
This appears to be an issue in the Roslyn C# compiler.