Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
5.2.0b3
Issue ID
712668
Regression
No
[Compiler] Mono produces wrong IL code when assigning values from structs
Mono produces wrong IL code when assigning values from structs
1. Setup
When running the script included in the example project the Mono compiler produces incorrect IL code. This can be seen by the Debug.Log printout or by inspecting the DLL after building a player. This is documented in the C# script file.
2. Reproduce
Open the example scene and run the test script, the code logic tells us is should print 6 but it will print 3.
Also look into the script file, as there everything is explained.
It looks like the compiler generates IL code which assignes a two member struct to a one member struct variable, instead of assigning one of its member to the variable.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][iOS][UnityPlayerActivity] Legacy InputField.onEndEdit is not called when ending text edit
- Transform corruption and/or crash on PhysX::CreateCharacterController when spawning physics objects into Prefab stages
- UNITY_EDITOR data is Serialized into AssetBundle when building on the active Build Target
- "TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations..." error when changing the Packages "Cache Location" folder
- CompilationPipeline.assemblyCompilationFinished() hangs unity when reloading domain
Add comment