[PATCH] D104505: [HIP] Defer operator overloading errors
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 17 19:48:01 PDT 2021
yaxunl created this revision.
yaxunl added reviewers: tra, rjmccall, rsmith.
yaxunl requested review of this revision.
nvcc does not diagnose overloading resolution diagnostics
if it happens in functions not emitted, e.g., if a device
function calls a host function, it is not diagnosed in
host compilation. clang implemented a similar feature
under option -fgpu-defer-diags.
Although clang is able to defer overloading resolution
diagnostics for common functions. It does not defer
overloading resolution caused diagnostics for overloaded
operators. This patch extends the existing deferred
diagnostic mechanism and defers a diagnostic caused
by overloaded operator.
https://reviews.llvm.org/D104505
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Overload.h
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCUDA/deferred-oeverload.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104505.352862.patch
Type: text/x-patch
Size: 5682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210618/6a756523/attachment.bin>
More information about the cfe-commits
mailing list