$ cat test.cpp void f() { __asm { __asm { mov eax, 1 } } } $ clang-cl -c test.cpp test.cpp(3,5) : error: unexpected token at start of statement __asm { ^ 1 error generated.
FWIW, this idiom is used here: http://dxr.mozilla.org/mozilla-central/source/media/libtheora/lib/x86_vc/mmxidct.c#131
(In reply to comment #1) > FWIW, this idiom is used here: > http://dxr.mozilla.org/mozilla-central/source/media/libtheora/lib/x86_vc/ > mmxidct.c#131 Among elsewhere in libtheora. This seems to be somewhat popular there.
And libyuv too.
Here is a fix: http://reviews.llvm.org/D4399
Fixed in r212389.