[Bug c++/59324] C++11: -Wsequence-point

2017-08-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59324

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||egallager at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #2 from Eric Gallager  ---
(In reply to Mathieu Malaterre from comment #0)
> It would be nice to remove the following warning about UB when compiling in
> C++11 mode:
> 

To REMOVE it? Just turn off the warning flag controlling it.

(In reply to Manuel López-Ibáñez from comment #1)
> Clang also thinks this is UB:
> 
> warning: multiple unsequenced modifications to 'b' [-Wunsequenced]

Since clang agrees, that's further evidence the warning is correct. I'm gonna
close this as INVALID since the warning is correct and easily avoidable.

[Bug c++/59324] C++11: -Wsequence-point

2015-03-16 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59324

Manuel López-Ibáñez manu at gcc dot gnu.org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu.org

--- Comment #1 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
Clang also thinks this is UB:

warning: multiple unsequenced modifications to 'b' [-Wunsequenced]