Issues compiling crypto++ inline assembly

I’m having issues compiling crypto++'s inline assembly with recent builds of clang (from my experiments 5.0.0 onwards). The code in question is the 32-bit version of which is failing on line 1005 with the error “error: invalid operand for instruction”.

I’ve bolied this code down to:

void test()
asm volatile
“jnz 0b;\n”

This compiles with GCC and clang 4.0.1 but fails with 5.0.0 and 6.0.0
Changing to AT&T syntax makes it build. Changing the jump to “0f” compiles (but obviously generates a jump to nowhere).

Any ideas how to solve this issue or is it a bug in clang’s intel syntax support?