This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
mainline (2004-01-22 12:00 UTC) rejects valid code
- From: Serge Belyshev <33554432 at mtu-net dot ru>
- To: gcc at gcc dot gnu dot org
- Date: 22 Jan 2004 17:16:04 +0300
- Subject: mainline (2004-01-22 12:00 UTC) rejects valid code
$ cat > problem.c
void f ()
{
int i;
(0, i) ++;
}
$ gcc -c problem.c
problem.c: In function `f':
problem.c:4: warning: left-hand operand of comma expression has no effect
problem.c:4: error: invalid lvalue in increment
$ gcc-3.3 -c problem.c
$ gcc -v 2>&1 | grep version
gcc version 3.5.0 20040122 (experimental)
$ gcc-3.3 -v 2>&1 | grep verison
gcc version 3.3.3 20040117 (prerelease)
$
I fill bugreport (if noone object) some 8 hours later.
(I am glad that such constructions are not used in gcc so it
profiledbootstraps just fine)