Mentions légales du service

Skip to content

Compiler generates wrong bytecode for indirect array access in native function call

Created by: stephanemagnenat

The compiler for version 1.2 generates a wrong bytecode for the following program:

var a = 1
var b = 2
var c[2] = 1,2
var result
call math.add(result, a, c[a])

At the end, result has value 1 where it should have value 3.