]> granicus.if.org Git - clang/commit
[OPENMP]Fix PR42068: Vla type is not captured.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 21 Jun 2019 17:28:41 +0000 (17:28 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 21 Jun 2019 17:28:41 +0000 (17:28 +0000)
commitf5019451b3e9236c35c495c2792f314246e46e36
tree2a61ad4acd2cf857ed081739a93116e2f9bd9ba2
parenta6b813593c4296abfeb4d3606b0ed38515e9d1b2
[OPENMP]Fix PR42068: Vla type is not captured.

If the variably modified type is declared outside of the captured region
and then used in the cast expression along with array subscript
expression, the type is not captured and it leads to the compiler crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364080 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/OpenMP/parallel_codegen.cpp