my suggestion is to file a bug. You might simply link to this post in the bug description, if you wish. The only thing I see missing from your posting for a complete bug report would be the compilation command used to compile the test code.
(Also, make sure you are compiling for an arch that matches or is aligned to your GPU, i.e. cc 12.0 in this case)