m4rs-mt / ILGPU

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

[BUG]: Variable naming #1240

Open laurentchougrani opened 5 months ago

laurentchougrani commented 5 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 5 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.