Food, at least, is not a stockpiled resource. The food icon at the top of the GUI represents your "excess" food -- in other words, it's how many more huts/houses/whatever you could build. But the excess unused food just gets thrown away each turn.
As for the gold, I'm not sure. I can't say I've noticed a mismatch between the displayed number and what I actually get each turn.