"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:Mw3Bb.271150$Dw6.928633@attbi_s02...
"cbowler" <cb*****@rogers.com> wrote... struct S {
int i;
};
int main() {
S myS;
myS.i; // is this a variable according to spec?
It is an expression of type int& (a reference to int).
Correction:
It is an lvalue of type int (see 5.2.5/4).
And in general, an object-expression evaluates to the type of the object it
designates - lvalue or rvalue.
References evaluate to lvalues (see 5/6) .