Apparently the set of discontinuity of derivatives is weird in its own sense. Following are the examples that I know so far:
$1.$ $$g(x)=\left\{ \begin{array}{ll} x^2 \sin(\frac{1}{x}) & x \in (0,1] \\ 0 & x=0 \end{array}\right.$$ $g'$ is discontinuous at $x=0$.
$2. $ The Volterra function defined on the ternary Cantor set is differentiable everywhere but the derivative is discontinuous on the whole of Cantor set ,that is on a nowhere dense set of measure zero.
$3.$ The Volterra function defined on the Fat-Cantor set is differentiable everywhere but the derivative is discontinuous on the whole of Fat-Cantor set ,that is on a set of positive measure, but not full measure.
$4.$ I am yet to find a derivative which is discontinuous on a set of full measure.
Some good discussion about this can be found here and here.
Questions:
1.What are some examples of functions whose derivative is discontinuous on a dense set of zero measure , say on the rationals?
2.What are some examples of functions whose derivative is discontinuous on a dense set of positive measure , say on the irrationals?
Update: One can find a function which is differentiable everywhere but whose derivative is discontinuous on a dense set of zero measure here.