llvm-project/clang/test/SemaCUDA
Yaxun Liu a461174cfd [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors
ShouldDeleteSpecialMember is called upon inherited constructors.
It calls inferCUDATargetForImplicitSpecialMember.

Normally the special member enum passed to ShouldDeleteSpecialMember
matches the constructor. However this is not true when inherited
constructor is passed, where DefaultConstructor is passed to treat
the inherited constructor as DefaultConstructor. However
inferCUDATargetForImplicitSpecialMember expects the special
member enum argument to match the constructor, which results
in assertion when this expection is not satisfied.

This patch checks whether the constructor is inherited. If true it will
get the real special member enum for the constructor and pass it
to inferCUDATargetForImplicitSpecialMember.

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

llvm-svn: 344057
2018-10-09 15:53:14 +00:00
..
Inputs
add-inline-in-definition.cu
addr-of-overloaded-fn.cu
alias.cu
amdgpu-attrs.cu [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
asm-constraints-device.cu
asm-constraints-mixed.cu
attr-declspec.cu
attributes-on-non-cuda.cu
bad-attributes.cu
bad-calls-on-same-line.cu
builtins.cu Revert the tests that should've been reverted in rL341115 2018-08-30 20:53:15 +00:00
call-device-fn-from-host.cu [CUDA] Fixed false error reporting in case of calling H->G->HD->D. 2018-03-23 19:49:03 +00:00
call-host-fn-from-device.cu [CUDA] Ignore uncallable functions when we check for usual deallocators. 2018-09-21 17:29:33 +00:00
call-stack-for-deferred-err.cu [CUDA] Report "unsupported VLA" errors only on device side. 2017-11-28 18:51:42 +00:00
config-type.cu
cuda-builtin-vars.cu
cuda-inherits-calling-conv.cu
cxx11-kernel-call.cu
device-var-init.cu [CUDA][HIP] Allow function-scope static const variable 2018-07-28 03:05:25 +00:00
error-includes-mode.cu
exceptions.cu
extern-shared.cu [HIP] Support early finalization of device code for -fno-gpu-rdc 2018-10-02 17:48:54 +00:00
function-overload.cu Fix some handling of AST nodes with diagnostics. 2018-03-28 04:16:13 +00:00
function-target.cu
function-template-overload.cu Fix typos in clang 2018-04-06 15:14:32 +00:00
global-initializers-host.cu
gnu-inline.cu
host-device-constexpr.cu
implicit-copy.cu
implicit-device-lambda.cu
implicit-intrinsic.cu
implicit-member-target-collision-cxx11.cu
implicit-member-target-collision.cu
implicit-member-target-inherited.cu [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
implicit-member-target.cu [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
inherited-ctor.cu [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
kernel-call.cu Fix some handling of AST nodes with diagnostics. 2018-03-28 04:16:13 +00:00
launch_bounds.cu Determine the attribute subject for diagnostics based on declarative information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. 2017-11-26 20:01:12 +00:00
lit.local.cfg
method-target.cu
no-call-stack-for-immediate-errs.cu [CUDA] Report "unsupported VLA" errors only on device side. 2017-11-28 18:51:42 +00:00
no-destructor-overload.cu
no-host-device-constexpr.cu
overloaded-delete.cu
pr27778.cu
qualifiers.cu
reference-to-kernel-fn.cu
trace-through-global.cu
usual-deallocators.cu [CUDA] Ignore uncallable functions when we check for usual deallocators. 2018-09-21 17:29:33 +00:00
vararg.cu
vla.cu [CUDA] Report "unsupported VLA" errors only on device side. 2017-11-28 18:51:42 +00:00