For cs_6_6 it does not report an error, generatesannotateHandle without createHandle, and the resource binding is not captured in metadata.
https://godbolt.org/z/xcadsEjzr
For lib_6_6 it also does not report an error, produces annotateHandle and createHandleForLib, and the resource binding is not captured in metadata.
https://godbolt.org/z/MWzdTEb6q
Description DXC should report error on local variable with resource binding.
Steps to Reproduce
For
cs_6_5
this reports an errorlocal resource not guaranteed to map to unique global resource.
https://godbolt.org/z/qhP8dqbedFor
cs_6_6
it does not report an error, generatesannotateHandle
withoutcreateHandle
, and the resource binding is not captured in metadata. https://godbolt.org/z/xcadsEjzrFor lib_6_6 it also does not report an error, produces
annotateHandle
andcreateHandleForLib
, and the resource binding is not captured in metadata. https://godbolt.org/z/MWzdTEb6qActual Behavior Local resources with bindings should not be allowed and the compiler should report an error.
Environment