When there's an error of assigning to a pointer of a wrong memory space, the OpenCL Build option crashes CodeXL and Visual Studio with it. For example:
__local float localVar[256];
float* var = localVar;
I'm using Visual Studio 2010 with CodeXL 1.4.5724.0 and a Radeon 5850.