Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Out-of-bounds error when printing out a function value


The following program:

   use std
   const main = {
           extern const _start : (->void)
           std.put("_start = {x}\n", _start)
   }

Output:
   Building
    6m -I /lib/myr in.myr     ld -o a.out /lib/myr/_myrrt.o in.o -lstd
-L/lib/myr -lsys    0x000000000041150d: out of bounds access Internal
error: /a.out: exited with signal 31

Looks like a bug. I expected that the value shown by nm is printed.

--
mura

Follow-Ups:
Re: Out-of-bounds error when printing out a function valuenml <arumakanil@xxxxxxxxx>
Re: Out-of-bounds error when printing out a function valueOri Bernstein <ori@xxxxxxxxxxxxxx>
Re: Out-of-bounds error when printing out a function valuenml <arumakanil@xxxxxxxxx>