When compiling the following snippet the offline compiler does not complain:
__kernel void T6_f_15_355 () {
__local int x = 5 ;
x = 0;
return;
}According to the OpenCL 1.1 spec (6.5.2), a local variable cannot be initialized.
The AMD compiler emits an error:
