I can't find where this proof goes wrong.
We know
$$\tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A\cdot\tan B}$$
so
$$\begin{align} \tan(90^\circ-45^\circ) &= \frac{\tan 90^\circ -\tan 45^\circ}{1+\tan90^\circ\cdot\tan 45^\circ}\\[.3cm] \tan45^\circ &=\frac {\tan 90^\circ -\tan 45^\circ}{1+\tan90^\circ\cdot\tan45^\circ}\\[.3cm]1 &=\frac{\tan 90^\circ - 1}{1+\tan90^\circ}\\[.3cm] 1+\tan90^\circ &= \tan 90^\circ - 1 \\[.3cm]2 &= 0\end{align}$$
Where is the error?
Remember that $$\tan(\theta)=\dfrac{\sin(\theta)}{\cos(\theta)}.$$ If we set $\theta=90^\circ$ we get: $$\tan(90^\circ)=\dfrac{\sin(90^\circ)}{\cos(90^\circ)}=\dfrac{1}{0}\text{ undefined!}$$ The identity you've given is true for all the numbers for which $\tan$ is defined. And $90^\circ$ is not one of them. So you can't use it to derive any kind of result.