Let $f \colon \mathbb R \to \mathbb R$. Suppose $f$ has a discontinuity at $a \in \mathbb R$. Now suppose also a continuous function $g \colon \mathbb R \to \mathbb R$ is given.
Is it true, then, that the function $g \circ f \colon \mathbb R \to \mathbb R$ has a discontinuity in $a$ as well?
Of course, this isn't true in general, since for instance $g$ could be a constant function, and then $g \circ f$ is obviously continuous in all points, so in particular in $a$. But, are there conditions we can give such that the statement would become true? E.g., perhaps we can assume that $g$ is non-constant in some neighborhood of $f(a)$, and this would suffice?
Thanks in advance.