Misreport "Cannot have return
statements inside while
or for
" if values returned by function are disregarded
#5768
Labels
return
statements inside while
or for
" if values returned by function are disregarded
#5768
Describe the bug
If caller disregard the returned values of a
@jit
function inside while or for loop, the compiler will reportEven if the code should compile without problems
Minimal Reproducer
Environment details
Triton: 0fa1dbd
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Aldebaran/MI200 [Instinct MI210] (rev 02)
Python: 3.10.15
The text was updated successfully, but these errors were encountered: