[Bug c++/57531] lvalue required with comma operator
vijunag at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 5 15:38:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57531
--- Comment #5 from vijay Nag <vijunag at gmail dot com> ---
(In reply to Andrew Pinski from comment #4)
> I think the problem is the comma operator causes it to be a rvalue. In that
> ((void)0, x) is considered rvalue rather than what you want as a lvalue.
>
> Note C does not have ?: as lvalues so this cannot apply to C; only C++.
Why did it work with gcc-3.3.6 ? Any revisions in standard ?
More information about the Gcc-bugs
mailing list