The fundamental theorem of calculus is stated as follows:
Let $f$ and $F$ be real-valued functions defined on a closed interval $[a, b]$ such that the derivative of $F$ is $f$. That is, $f$ and $F$ are functions such that for all $x \in [a, b]$,
$F'(x) = f(x)$
If $f$ is Riemann integrable on $[a, b]$ then
$\int_a^b f(x)\,dx = F(b) - F(a)$
My question is: is it necessary to say ''if $f$ is Riemann integrable''? It seems to me that if $f$ is the derivative of a function $F$ then it must be Riemann integrable.
Is there an example of $f$ and $F$ such that $F'=f$ and $f$ is not Riemann integrable?
To answer the question at the end of your post:
Quote from van Rooij, Schikhof: A Second Course on Real Functions, p.4:
If you prefer an example which is bounded, this answer mentions Volterra's function. Its derivative is not Riemann integrable.