]> granicus.if.org Git - clang/commit
[CUDA] Reject calls to __device__ functions from host variable global initializers.
authorJustin Lebar <jlebar@google.com>
Wed, 10 Aug 2016 01:09:21 +0000 (01:09 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 10 Aug 2016 01:09:21 +0000 (01:09 +0000)
commitbd12a41e3d807236a271e9e18a652a9fb838fa76
treede3a8572554e88392adc3221b35ecce0d6d4f16a
parent8830dfce4f60dcddd0f23c313903d22505169a07
[CUDA] Reject calls to __device__ functions from host variable global initializers.

Reviewers: tra

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278196 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCUDA/global-initializers-host.cu [new file with mode: 0644]