BUG: Array initialization does not conform to C standard

When I initialize a C array like this:

[font=“Courier New”] int myArray[10] = {0};[/font]

I expect that the ENTIRE array would be initialized with zeros. This is a standard ANSI C behavior.

When compiling the code for CUDA, the remainder of the array appears to remain uninitialized. This is a bug in the compiler.

I encountered the same problem some time ago.

It took me some time to debug.