Re: Phix : a conundrum
- Posted by petelomax May 30, 2017
- 1220 views
Obviously that is a bug in the compiler. As buggy as a bug can be.
For some reason the compiler has decided that inpfile is always length 0 in main(), and rudely optimized away the second loop.
As a temporary fix, you could inpfile = append(inpfile,1), either immediately after the declaration, or as the first statement in main(), knowing that 1 will be thrown away, while I'm hunting it down.
FYI, you can compare the list.asm from p -d scopetest.exw with one from p -d! scopetest.exw and see the binary (in main()) is, well, gone.
Regards,
Pete