@elazro said:
It is definitely not valid, even though the code is invoking a static method. This falls into the realm of what the C++ standard defines as "undefined behavior". Thus, the previous code might do what the author expected, might crash, or it could launch a nuclear missle strike - one can't tell.
Yeah, that's basically what I expected. This was an old, custom version of gcc, if I recall correctly, used to compile for the original PlayStation.