This code does not work with clang compiled with msvc.
auto lstatic = []() static { return 0; };
int (*f2)(void) = lstatic;
I am working on a quick patch to fix it (the wrong calling convention CC_X86ThisCall is getting assigned in spite of the static).