I tried to help somebody on Stack overflow and got this issue: link
You can see that
template<int val> int MyClass<val>::var = val;
Is only displayed for one of the three instantiations... and that one is mangled up with the endif macro:
#endiint MyClass<9>::var = 9;
Please let me know if you need more information. And thanks for the tool!