]> granicus.if.org Git - clang/commit
Fix false positive unsequenced access and modification warning in array subscript...
authorNicolas Lesser <blitzrakete@gmail.com>
Thu, 10 Jan 2019 19:03:33 +0000 (19:03 +0000)
committerNicolas Lesser <blitzrakete@gmail.com>
Thu, 10 Jan 2019 19:03:33 +0000 (19:03 +0000)
commit23a55bd3f5c9f0483b82f4ecd489d3c0284d34b9
tree966e978c9f4fe6f886c9f90dea828e9955a67944
parent7697c704e135cefdc7f19ba5d6d4749944669be2
Fix false positive unsequenced access and modification warning in array subscript expression.

Summary: In the [expr.sub] p1, we can read that for a given E1[E2], E1 is sequenced before E2.

Patch by Mateusz Janek.

Reviewers: rsmith, Rakete1111

Reviewed By: rsmith, Rakete1111

Subscribers: riccibruno, lebedev.ri, Rakete1111, hiraditya, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D50766

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/warn-unsequenced-cxx17.cpp [new file with mode: 0644]
test/SemaCXX/warn-unsequenced.cpp