Yes Three Kings but was set during the Gulf War, I too have been wracking my brain over the film. WW2 ones I remember was the one removing the diamonds from Amsterdam before the Germans arrived.
That and the excellent Monument Men..
Unless you are thinking of Clint Eastwood in Kelly’s Hero’s after the Gold in a bank guarded by a Tiger Tank.