Changes between Initial Version and Version 1 of Ticket #1

Show
Ignore:
Timestamp:
05/12/09 10:14:02 (6 years ago)
Author:
benl
Comment:

This currently causes a GCC error when it tries to build the thunk.

        _dEF2_a0_exp:
        _S(1)                   = _allocThunk (Main_fun, 2, 1);
        _TARG(_S(1), 0)         = 2;   ********** type error
        _S(2)                   = _allocThunk (System_Console_putStr, 1, 0);
        _S(3)                   = _allocThunk (Class_Show_instance_Show_Int32_show, 1, 0);

./test/Broken-skip/T1-CurryUnboxed/Main.ddc.c: In function ‘Main_main’:
./test/Broken-skip/T1-CurryUnboxed/Main.ddc.c:39: warning: assignment makes pointer from integer without a cast
./test/Broken-skip/T1-CurryUnboxed/Main.ddc.c:42: warning: passing argument 2 of ‘_apply1’ makes pointer from integer without a cast
./test/Broken-skip/T1-CurryUnboxed/Main.ddc.c:42: warning: assignment makes integer from pointer without a cast
d

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1 – description

    initial v1  
    11Runtime system cannot handle partial application of functions to unboxed args. It'd be easy to check for this problem in the core language, and panic. 
    22 
     3Test is T1-CurryUnboxed.