You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there's a dup call inside StaticArray that doesn't return what it should.
Here's a reduction:
structFoodefinitialize(@x : Int32)
enddeffoo
dup
endend
a =Foo.new(1)
b = a.foo
puts b # Foo(@x=65748992) ???
When I change dup to self in StaticArray it starts working fine, so there must be something wrong in the interpreter regarding dup. It's strange because dup just returns self.
Here's another reduction that doesn't depend on dup:
structFoodefinitialize(@x : Int32)
enddeffoo
me
enddefmeselfendend
a =Foo.new(1)
b = a.foo
puts b # => Foo(@x=70352896)
Bug Report
Example code:
Interpreter crashes with invalid memory access error:
The text was updated successfully, but these errors were encountered: