%u Wrote: > Well, the trouble is, pretty much all of these are invalid attributes: > - static obviously makes no sense And here is where you're wrong. You have defined a static destructor, which is called with module destructor as the program goes out of scope, rather than when your struct or class is destroyed.