This is the mail archive of the gcc@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]

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)


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