]> granicus.if.org Git - clang/commit
[OPENMP] Fix handling of OpenMP code during template instantiation.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 26 Apr 2017 15:06:24 +0000 (15:06 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 26 Apr 2017 15:06:24 +0000 (15:06 +0000)
commited38176964187cb99f3b9a2b5eef9f9e79c71124
tree6eb0f06be786c5d8f0951185187a34454902a781
parent9bdffb9899360b2598c110ebfcdc685f76c3ac50
[OPENMP] Fix handling of OpenMP code during template instantiation.

If some function template is instantiated during handling of OpenMP
code, currently it may cause crash of compiler because of trying of
capturing variables in non-capturing function scopes. Patch fixes this
bug.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301416 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/Sema.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/capturing_in_templates.cpp [new file with mode: 0644]