Limits of local variables

Hi,

I am curious about what will happen if a kernel used a lot of local variables which exceed the local memory. For example, in a test kernel, one write the following, then he/she use 16 by 16 grid with each block contains 256 threads. Will the compile generate an error at compile time or there will be a run time error? Thanks.

Jeremy

...

float temp[10000000000]

...