]> granicus.if.org Git - clang/commit
[CUDA] Print a "previous-decl" note when calling an illegal member fn.
authorJustin Lebar <jlebar@google.com>
Wed, 10 Aug 2016 01:09:18 +0000 (01:09 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 10 Aug 2016 01:09:18 +0000 (01:09 +0000)
commit8830dfce4f60dcddd0f23c313903d22505169a07
tree2a36a8dc3d116db1c5cd29bfe2af6c46beb1f86f
parent984f42a083bf8d99237355fc8b83830cdd12bea8
[CUDA] Print a "previous-decl" note when calling an illegal member fn.

Summary:
When we emit err_ref_bad_target, we should emit a "'method' declared
here" note.  We already do so in most places, just not in
BuildCallToMemberFunction.

Reviewers: tra

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278195 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCUDA/method-target.cu