> The constructor for 'a' is supposed to run the first time you enter f(). > This requires a lock (or good luck) in MT code. Does egcs (or any compiler) > generate such a lock? Recent Digital UNIX C++ compilers generate thread-safe calls to constructors.