]> granicus.if.org Git - clang/commit
[CUDA] Disallow 'extern __shared__' variables.
authorJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 23:57:30 +0000 (23:57 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 23:57:30 +0000 (23:57 +0000)
commit19893088e35298e064d60896cda2be8ce788e1a1
tree4310d2f1f27e5c2d370fbfebad81656dca5428fc
parent6079e1dffcfa30fb5c96e6e4cf6a1c1fd9cce388
[CUDA] Disallow 'extern __shared__' variables.

Also add a test that we disallow

  __constant__ __shared__ int x;

because it's possible to break this without breaking

  __shared__ __constant__ int x;

Reviewers: rnk

Subscribers: cfe-commits, tra

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282985 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaCUDA/bad-attributes.cu
test/SemaCUDA/extern-shared.cu [new file with mode: 0644]