According to this defect report C++03 Standard does not guarantee that in the following code:
volatile int x;
void f() {
x;
}
the variable is read from.
Then how do I write code that just read the volatile variable value and discards the result (read for the sake of read)?