The misconception could be on part of the book. Please give us the name of the book and the context of the question - most likely we'll have to warn people away from it now.

matsp: That's a violation of the ODR. No diagnostic required, but the program has undefined behaviour, like any other program that attempts to change a const variable.