When msvc::musttail attribute silently fails

Python developers recently reported a 15% speedup when using the new MSVC musttail attribute to create a threaded interpreter . Unfortunately, I found that MSVC does not always generate a tail call when you use this attribute, which can potentially lead to stack overflow when interpreting a complex program. Background The musttail attribute, also supported by clang , forces the compiler to…