[Bug c++/27224] Read twice and write on a variable in same expression

2006-04-22 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-04-22 18:33 --- As a dup of bug 15145. *** This bug has been marked as a duplicate of 15145 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/27224] Read twice and write on a variable in same expression

2006-04-22 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-04-22 18:33 --- (In reply to comment #4) > One has still to use the -Wsequence-point, in C++? > It would be good if there was no need to explicitly use such a switch... For 4.1 (and maybe 4.0 I forget), -Wall includes -Wsequence-po

[Bug c++/27224] Read twice and write on a variable in same expression

2006-04-20 Thread moura at kdewebdev dot org
--- Comment #4 from moura at kdewebdev dot org 2006-04-20 14:49 --- One has still to use the -Wsequence-point, in C++? It would be good if there was no need to explicitly use such a switch... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27224

[Bug c++/27224] Read twice and write on a variable in same expression

2006-04-20 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2006-04-20 12:06 --- ... to close as fixed in 4.0.0. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/27224] Read twice and write on a variable in same expression

2006-04-20 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-04-20 12:05 --- Oh, you used C++ but filed against C. Reopen bug... -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/27224] Read twice and write on a variable in same expression

2006-04-20 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-04-20 12:04 --- It's called -Wsequence-point, but it's not perfect. See also PR18050. int *v; int i; void f(int, int); void foo(void) { v[i] = i++; f(v[i], i++); } /space/rguenther/install/gcc-3.4.4/bin/gcc -Wsequence-point -