This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59324] C++11: -Wsequence-point
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Aug 2017 11:32:16 +0000
- Subject: [Bug c++/59324] C++11: -Wsequence-point
- Auto-submitted: auto-generated
- References: <bug-59324-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59324
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |egallager at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(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.