Gold gains as gloomy U.S. economic outlook dents dollar