This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

+ should strip lvalue


$ cat t.c
int i;

int main() { +i = 1; return 0; }


$ g++  t.c
t.c: In function `int main()':
t.c:3: non-lvalue in assignment


$ gcc  t.c
$ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]