Search Issue Tracker
Fixed in 5.1.2
Votes
0
Found in
5.0.2f1
Issue ID
696745
Regression
No
[IL2CPP] produces invalid code with fixed array/pointer
IL2CPP produces invalid code when using the bracket operator ([]) on fixed arrays or pointers.
Example 1:
unsafe struct FixedArray { public fixed int array[2]; }
(new FixedArray()).array[1].ToString(); // error
Example 2:
struct Data { public int x; }
fixed (Data* p = new Data[2]) { p[1].x = 0; } // error
Note that there is no problem when accessing the first element. This issue reproduces only when accessing the second and subsequent elements.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment