Depends on the agency. It doesn't with some.
It does with Fitch. That's the point. They're the ones obsessed with gross government debt (the others use the net numbers). The US owes 21% more of GDP than Canada, yet they keep a AAA. Canada is in no more danger of default than the US.