I\'m using static initialisation to ease the process of registering some classes with a factory in C++. Unfortunately, I think the compiler is optimising out the \'unused\'
The compiler should never optimize away such globals - if it does that, it is simply broken.