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

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


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.

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