Eigenstate: myrddin-dev mailing list

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

Re: Crash when using sizeof in array size


Thanks! It works now.

...though I found an mbld bug. You can't create a binary out of just
object files. This does absolutely NOTHING:


mbld -bx x.o


I tried printing debugging output and got this:


ryan@DevPC-LX2 ~/uproc $ mbld -d -bx x.o
unreachable
Aborted (core dumped)
ryan@DevPC-LX2 ~/uproc $


On Sun, Jul 30, 2017 at 8:41 PM, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:
> Oops.
>
> The frontend didn't know about sizeof() so it couldn't fold it. Added a hook
> so that the backend can give fold() a sizeof function. It should work now.
>
> On Sun, 30 Jul 2017 20:10:32 -0500, Ryan Gonzalez <rymg19@xxxxxxxxx> wrote:
>
>> const f = {
>>     var buf: byte[sizeof(int)]
>> }
>
> --
>     Ori Bernstein



-- 
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
http://refi64.com/

Follow-Ups:
Re: Crash when using sizeof in array sizeOri Bernstein <ori@xxxxxxxxxxxxxx>
References:
Crash when using sizeof in array sizeRyan Gonzalez <rymg19@xxxxxxxxx>
Re: Crash when using sizeof in array sizeOri Bernstein <ori@xxxxxxxxxxxxxx>