Updated Answer
"Is work done by torque due to friction in pure rolling?" is your question. The answer is "friction does no work in pure rolling". Notice I said friction does no work for pure rolling. Considering the torque from friction depends on your approach; details follow. Also, results for the case with slipping are summarized, in which case the force of friction does work.
Consider a rigid body rolling down an incline in Figure 1. Two approaches are used: (1) considering the point where the body contacts the incline and (2) considering rotation with respect to the center of mass. Note that torque and angular momentum depend on the point about which they are evaluated, which is a different point for the two approaches.
Approach 1 Considering the point where the body contacts the incline: pure rolling
Q is the point where the body contacts the incline. Friction acts at point Q , and for pure rolling Q is instantaneously at rest. Using the earlier answer by @Dale, the work done by force $\vec F$ is $\int_{}^{} \vec F \cdot d \vec r$ where $\vec r$ is the path; this can also be expressed as $\int_{}^{} \vec F \cdot \vec v dt$ where $v$ is the velocity. At point Q, $\vec v$ is zero and friction does no work. With respect to point Q, there is no torque from the force of friction, and the force of gravity provides the torque to rotate the body.
Approach 2 Considering rotation about the center of mass: pure rolling
Many standard physics textbooks address this problem by segregating the motion into (1) translational motion of the center of mass (CM) plus (2) rotational motion about the CM. Using this approach, the force of friction contributes to both (1) and (2). The work by friction for (1) is $-\int F_{fric} dx$, negative since friction opposes the x motion down the plane; the work done by friction for (2) is $\int \tau_{fric} d \beta = \int F_{fric}R dx/R$, where $d \beta = dx/R$ with no slip. ($\beta$ is the angle of rotation with respect to the CM; $\omega = {d\beta \over dt}$ where $\omega$ is the angular speed of rotation with respect to the center of mass.) The first term decreases the kinetic energy of the CM and the second term increases the rotational energy about the CM, but the sum of the terms is zero. Therefore, using this approach we also see that (net) work done by friction is zero. With respect to the CM, the force of friction provides the torque to rotate the body, and the force of gravity provides no torque. With this approach, torque due to friction does work but considering the work from friction on translation of the CM the total work from friction is zero.
Now, consider the case where the rigid body slips. See Figure 2.
First, we need to recognize that there are no "heating" effects from friction acting on a rigid body. There can be no change in the internal energy of a rigid body since the positions of the particles in the body with respect to each other do not change. Therefore, even for rolling with slipping no heating occurs. (In the real world heating does occur.)
Approach 1 Considering the point where the body contacts the incline: with slipping
With slipping, point Q has a velocity component down the plane of magnitude $v_{Qdown} = v_{CM} - R \omega$ where $\omega$ is the angular velocity about Q. With slipping, $R \omega \ne v_{CM}$ and Q is not instantaneously at rest. In general change in angular momentum with respect to any point Q is (a) ${d\vec L_Q \over dt} = \vec N_Q - m(\vec R_{CM} - \vec r_Q) \times \ddot {\vec r_{Q}}$ where $\vec R_{CM}$ is the vector from the origin $O$ to the CM, $\vec r_Q$ is the vector from $O$ to $Q$ and $m$ is the total mass. (See Symon, Mechanics for a derivation of this relationship.) For our situation (a) becomes (b) $I_{CM} \dot \omega + mR^2 \dot \omega = mgsin\theta R - mR (\dot v_CM - R \dot \omega)$. Also, (c) $mgsin\theta - F_{fric} = ma_{CM}$ where $a_{CM}$ is the speed of the CM down the plane. Relationships (b) and (c) can be solved for the motion. Then the work done by friction can be evaluated as $-\int_{}^{} F_{fric} \vec v_{Qdown} dt$; the work done by friction is not zero with slipping, it is negative.
Approach 2 Considering rotation about the center of mass: with slipping
With respect to the CM, the general relationship (a) above is ${d\vec L_{CM} \over dt} = \vec N_{CM}$; this is the standard relationship given in elementary physics textbooks, valid even if the CM is accelerating. For our situation, we have (d) $I_{CM} \dot \omega = F_{fric}R$ and as before (e) $mgsin\theta - F_{fric} = ma_{CM}$. Relationships (d) and (e) can be solved for the motion. Then the work done by friction with slipping can be evaluated as $-\int F_{fric} v_{CM}dt$ + $\int \tau_{fric} \omega dt$, and the result is negative.
A detailed evaluation yields the same results for the motion and for the work done by friction using either of the two approaches.