http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59324
Bug ID: 59324 Summary: C++11: -Wsequence-point Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mathieu.malaterre at gmail dot com It would be nice to remove the following warning about UB when compiling in C++11 mode: $ cat t.cxx int main() { int b = 1; int m = (b++) + (++b); (void)m; return 0; } $ g++ -std=c++11 -Wsequence-point t.cxx t.cxx: In function 'int main()': t.cxx:4:23: warning: operation on 'b' may be undefined [-Wsequence-point] int m = (b++) + (++b); ^ $ g++ --version g++ (Debian 4.8.2-1) 4.8.2