[cpp]label1: printf("A"); label2: printf("B"); void* x = &&label2; goto *x;[/cpp]This gives me two errors in lines 6 and 7 (error: expected an expression and error: expected an identifier).
Seems to be that this feature is only in Linux compilers, and is a GNU Clanguage feature. Microsoft compilers do not implement it.
Our goal is to be fully source & binary-compatible with gcc for Linux compilers, while fully compatible with Microsoft compilers in Windows.
So it looks to bea tough call to get it in Windows. Nevertheless, what benefits does it offer to your code when it could be done with the lack of it.
As Jim said, on Windows the Intel C++ Compiler does support GNU style asm statement. I remember there are a few limitations. But it should work in most cases.