If a function $f$ is defined and differentiable in an open interval A, then it's also continuous in A. Since it's differentiable, for a random real number a that belongs to A:
$f'(a) = \lim_{x\to a}{f(x) - f(a)\over x - a} $
Since $f$ is continuous, $\lim_{x\to a}f(x) = f(a)$ so the limit $\lim_{x\to a}{f(x) - f(a)\over x - a}$ is ${0\over 0}$, so we can use L'Hospital's rule and say that $f'(a) = \lim_{x\to a}{f(x) - f(a)\over x - a} = \lim_{x\to a}{f'(x)}$
(pretty much the same thing if it's a closed interval)
So that means that $f'$ is continuous, which is wrong since it's just a random function and it's possible to make a derivative of a function non continuous. So where's the mistake?