https://bugs.llvm.org/show_bug.cgi?id=39779

            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: unassignedclangb...@nondot.org
          Reporter: tiagomacar...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

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

https://godbolt.org/z/pcut3J

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to