[LLVMbugs] [Bug 21706] -Wunsequenced should warn on v[i++] = i++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 2 17:09:07 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21706

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Thanks, fixed in r223184.

<stdin>:7:8: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
    v[i++] = i++;
       ^      ~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141203/ae272dbc/attachment.html>


More information about the llvm-bugs mailing list