Incorrect IL generated for function pointer call with in
parameter
#47487
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Feature - Function Pointers
Adding Function Pointers
Urgency-Soon
Milestone
Version Used: Visual Studio 2019 16.8.0 Preview 2.1
Steps to Reproduce:
Expected Behavior:
b = 2147483647, c = a
Actual Behavior:
The IL code passes
int.MaxValue
directly, when it should be passing the address of a temporary.Note: removing the
ref char c
parameter causes thein int b
parameter to be passed correctly.The text was updated successfully, but these errors were encountered: