You may be thinking Riemann integration. Lebesgue integration, which is more powerful but is not taught in high school, can handle this situation.
Like any Riemann integral where the integration range is not a proper subset of the domain of the integrand, this integral, taken as Riemann, cannot be evaluated.
The function $f(x)$ has a removable singularity at $x=0$, as Hugo C Botós points out in his answer. That means the modified Riemann integral
$$ \int_{-\infty}^{\infty} g(x) \delta(x) dx =1$$
with
$$g(x)=
\begin{cases}
\frac{sin x}{x},&x\ne 0\\\\
1,&x=0
\end{cases}
$$
can be evaluated.
Lebesgue integration, so to speak, automates this, where a function's domain has gaps of measure 0 (like isolated values).
Different symbols for the types of integration would have removed this ambiguity, but apparently this is not very relevant.