Bug in cudaCreateChannelDesc<> or in the compiler

I’m invoking cudaCreateChannelDesc() and it returns a descriptor of (8,0,0,0,cudaChannelFormatKindNone) but only in optimized release configurations, debug builds (correctly) return (8,0,0,0,cudaChannelFormatKindUnsigned).

Unfortunately it wouldn’t be easy for me to produce a simple program to demonstrate the issue but I was wondering if anyone else has encountered this problem.

Incidentally, I see in channel_descriptor.h that you guys provide a definition for the main cudaCreateChannelDesc template. This is not a good idea; it is better to only define the specializations. Or is there a practical reason to get a (0,0,0,0,cudaChannelFormatKindNone) descriptor?

Please disregard.