* Old Wolf:
Does the standard define the meaning of 'evaluate' ? Someone
in another newsgroup said they thought evaluating a pointer
meant dereferencing it, and I couldn't find any text to contradict
this.
The standard defines "used" in terms of appearance in a "potentially
evaluated" expression, in §3.2/2. The term "evaluate" is not explicitly
defined, as far as I can see. But it means to produce a single value or
reference of the type of the expression, and is implicitly defined that
way by the usage of "evaluation" in §5 (Expressions).
For a pointer variable p, the id-expression p evaluates the pointer,
producing its value. This contradicts the notion that evaluation
necessarily involves dereferencing.
The dereferencing expression *p also evaluates the pointer.