They don't use gold anymore. They just print more money. It can work until it is obvious that the debt can never be repaid plus interest in real terms.