Search Issue Tracker

Fixed in 2019.1.8f1

Votes

0

Found in

2018.3.0b9

2019.1.0a8

2019.1.3f1

Issue ID

1156422

Regression

No

[IL2CPP][2019.1] Delegate with NativeArray<int> as parameter type triggers an compiler error

IL2CPP

-

Steps to reproduce:
1. Download 1156422_repro.zip
2. Build a Standalone player with IL2CPP backend

Actual results: Build fails with an exception.

Reproduced with: 2019.1.4f1, 2018.4.1f1
Not reproducible with: 2019.3.0a3, 2019.2.0b3, 2019.2.0a10

Exception: D:\Unity\2018.4\2018.4.1f1_42a7eb444191\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!

stdout:
Building GameAssembly.dll with MsvcDesktopToolChain
Msvc Install Version: 15.0
Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe
Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe

Example code:
delegate void Fn(NativeArray<int> value1, [ReadOnly] NativeArray<int> value2);

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.