On 9/20/07, Michiel de Bondt <[EMAIL PROTECTED]> wrote: > struct string100 { char value[100]; };
> strcpy (a[0].value, "Non-lvalue assignment."); // illegal So you basically have: a.operator[](0).value Where value ia an array, I cannot remember the specific rules here but value decays to &value[0] which is considered a rvalue but value[0] is a lvalue even if a.operator[](0) is an rvalue. So I think GCC is correct in accepting this code. Thanks, Andrew Pinski