This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11868] compound statement expression yields "void value not ignored"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2003 13:25:40 -0000
- Subject: [Bug c/11868] compound statement expression yields "void value not ignored"
- References: <20030809132021.11868.bradley-k-gnubugzilla.29cd01@bradley.lcs.mit.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11868
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|compound statement |compound statement
|expression yields "void |expression yields "void
|value not ignored" |value not ignored"
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-09 13:25 -------
The code is invalid as { 0 } is a void value while ({ 0 }) is the compound statement extension.
So adding the parens just changes { 0 } into a compound statement.