If this is topsoil, not a bagged potting mix, it will contain lots of soil microbes. These can sour the soil if it is stored damp. I've used 14 yr. old bagged soil before, and most of it was fine. I did a smell test. Some of the bags were still damp inside (completely sealed), and a couple of them smelled sour. The others, including what dried, smelled normal (compared with healthy topsoil from my garden) when moistened.
I think of topsoil as living, compared to potting mix, which I think of more as a substrate. Topsoil will slowly decline without maintenance, especially if damp. Dry topsoil will last a long time, but all insect/earthworm life (which may not be present in bagged topsoil anyway) will die, leaving only dormant microbes. Also see this article, which has relevant info.
Dormancy is a reversible state of low metabolic activity that organisms enter when they encounter hard times, such as freezing temperatures or starvation. Unlike plants that follow predictable growth cycles, microbes don't have to follow a linear progression. They could be growing, experience distress and go back to sleep. Once conditions change, they could start growing again without having to go through a full cycle.
If the soil smells fine, I'd use it. You shouldn't run into any problems. If it doesn't smell fine, it may have gone sour. I'd let it breath outdoors in the sun for a while (maybe a month) before use, and possibly get some analysed so I can see what's wrong with it (only if it was some quantity). Otherwise I'd use it in small amounts to fill holes in the lawn, or something like that.