[Bug c++/57531] lvalue required with comma operator
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 5 15:36:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57531
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |c++
Severity|major |normal
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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++.
More information about the Gcc-bugs
mailing list