It's almost incredible to have this kind of problem today when the global population is growing uncontrollably.
The USA has a birth rate just barely above replenishment (and dropping), Europe has dropped below replenishment rate, etc.
Some pretty graphs here: http://andrewducker.dreamwidth.org/2776214.html
If you have a workforce in their thirties who are still at entry level positions or thereabouts, and a majority of voters between the age of 50 and 80, you end up with a political class that wins elections with pro-retirement and healthcare policies and a tax-base that has no way to pay for it. This is a recipe for disaster and it’s already happening in Japan. It could easily happen in any aging population.