A recent build of clang by gcc says:
clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp:92:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Source code is
assert(!Packoffsets || Index < Packoffsets->size() &&
"number of elements in layout struct does not "
"match number of packoffset annotations");
Suggest add ( and ) to make intention clear.