Search Issue Tracker

Fixed

Fixed in 1.5.1

Votes

0

Found in [Package]

1.5.1

Issue ID

BUR-1096

Regression

No

[Burst ] C# 9 Function pointers cause compile error when casting IntPtr to delegate*<int, int>

Package: Burst

-

Reproduction steps:
1. Open the attached project ("Burst.Delegates.zip")
2. Open Test Runner window (Window -> General -> Test Runner)
3. Select PlayMode
4. Run FunctionPointerTest
5. Open the Console window

Expected result: Test ran successfully, no errors in the console
Actual result: Error is output "Burst error BC1054: Unable to resolve type `method System.Int32 *(System.Int32). Reason: Unknown."

Reproducible with: 2021.2.0a11, 2021.2.0a13
Not reproducible with: 2018.4.33f1, 2019.4.24f1, 2020.3.4f1, 2021.1.3f1, 2021.2.0a10 (C# language version 9 was updated in 2021.2.0a11)

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.