Happened to me too. Match ID 40788170, started around 17:45 and I regained use of my gun at 24:56.
I died while having a debuff that disabled my gun and respawned with the debuff still on, and it persisted through 2 more deaths.
When it got re-enabled at 24:56, it was because I pressed the...