[ERROR]
The reference type is not volatile, the assigned type is.
volatile i;
const int &r=i; // illegal
Either both are volatile or both are not volatile.