]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR38903: Crash on instantiation of the non-dependent
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 13 Sep 2018 16:54:05 +0000 (16:54 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 13 Sep 2018 16:54:05 +0000 (16:54 +0000)
commitc21fea9179a959871c37de6b9662131c7e55a9ef
tree026fe4caa1aab4fa8f5c3507a231298fb7949d74
parenta79c7739c3ccabf30e2b1c056181c4eee5914be4
[OPENMP] Fix PR38903: Crash on instantiation of the non-dependent
declare reduction.

If the declare reduction construct with the non-dependent type is
defined in the template construct, the compiler might crash on the
template instantition. Reworked the whole instantiation scheme for the
declare reduction constructs to fix this problem correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342151 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclOpenMP.h
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/Parse/ParseOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/OpenMP/declare_reduction_messages.cpp