warranty issue is separate from parts.. first, i dont think its correct that canon only stock parts for 5 years, much will depend on the model, sales and how fast model is discontinued.
secondly, warranty doesnt last 5 years in any event.
if parts become unavailable, then they will be unavailable regardless of whether you are under warranty or not.