Incompatible pointer to integer conversion hangs compiler
Submitted by Chris Cummins
Assigned to Zhigang Gong @gongzg
Link to original bug (#102061)
Description
Compilation of this kernel loops indefinitely, consuming 100% CPU usage and increasing amount of memory, until the entire system memory is consumed and the process fails:
kernel void A(global int* a) { int b = get_global_id(0); a[b] = a + 1; }
Removing the '+ 1' prevents the compilation hang, as does assigning to 'a[0]'.
Full test case is here: http://paste.ubuntu.com/25180351/
Cheers, Chris