"Global register variable not supported " build failure(s) — clang 6.0

Global register variable are not supported by clang. This code will fail to build with clang:
register void *ptr asm("rbx") ;

No error detected for version 6.0