[llvm-bugs] [Bug 39779] New: -Wunsequenced warning on OR operator

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 25 13:21:55 PST 2018


            Bug ID: 39779
           Summary: -Wunsequenced warning on OR operator
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tiagomacarios at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

As per http://eel.is/c++draft/expr.log.or#2 this should be well defined, but
clang issues a warning.


void foo(int idx)
    ((idx++, false) || (idx++, false));

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/20181125/9f5ffae6/attachment.html>

More information about the llvm-bugs mailing list