Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.2.X, 2021.1.X

Votes

0

Found in

2019.4.15f1

Issue ID

1310304

Regression

Yes

IL2CPP fails to build with conversion error "error C2440"

IL2CPP

-

How to reproduce:
1. Open the user's attached project
2. Make sure Scripting Backend is set to IL2CPP
3. Build And Run

Expected results: Building with IL2CPP Succeeds
Actual results: Building with IL2CPP fails, "Exception: C:\Program Files\2019.4\2019.4.15f1_fbf367ac14e9\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!" is logged to the Console

Reproducible with: 2019.4.15f1, 2019.4.19f1
Not Reproducible with: 2019.4.14f1
Couldn't test with: 2018.4.31f1, 2019.4.13f1, 2020.2.0a1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3 (many errors downgrading/upgrading)

Error thrown:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Generics158.cpp
error C2440: 'type cast': cannot convert from 'ManagedComponentParameter_1_t33FCCE886F239C5817A8C0CAD58EE157207B4D4F' to 'ManagedComponentParameter_1_tE16E9F16C8A2159AC8A07AB03236AEB35B85D220'

  1. Resolution Note (fix version 2021.2):

    This bug does not affect 2021.2

  2. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.0b10 and up

  3. Resolution Note (fix version 2020.2):

    Fixed in: Unity 2020.2.6f1 and above

  4. Resolution Note (fix version 2019.4):

    Fixed in Unity 2019.4.23f1

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.