When I compile the following code with the -g flag to the OpenCL compiler, I get a segmentation fault.
[cpp]typedef struct { uint x; } S;
void f(__local S *p) {}
__kernel void k()
{
__local S s;
f(&s);
}[/cpp]
I'm using 64-bit Ubuntu 13.10 (which I know isn't supported, but perhaps this bug applies to supported platforms too). I tried to include more detailed instructions on how to reproduce the problem, but I kept getting an error message about triggering the spam filter.
For more complete information about compiler optimizations, see our Optimization Notice.