Which document does this relate to?
resources.tex
Describe the issue you see with the spec
9.5.1 p6 reads:
Other declarations in the cbuffer declaration group such as namespace-declaration, record-declaration or function declaration are not allowed
This is incorrect. The behaviour in dxc and fxc, and per the implementation proposal for clang, such constructs should transparently belong to the enclosing context.