m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.34k stars 115 forks source link

[BUG]: Variable naming #1240

Open laurentchougrani opened 3 months ago

laurentchougrani commented 3 months ago

Describe the bug

I stumble upon something yesterday while playing with ILGpu :

Environment

Steps to reproduce

1 create a struct with a variable "Position" that is not an int8 2 Map an Action where the "whatever" contains a method that calls for the "Position" variable. 3 the mapping geenrate an exception

Expected behavior

naming a variable should not infer its type.

Additional context

No response

MoFtZ commented 3 months ago

hi @laurentchougrani. Can you please provide some sample code the reproduces the issue? Ideally, this would be a minimal project that can be compiled and demonstrates your issue.