[PATCH] D35817: Ban implicit _Complex to scalar conversions in C++
Hal Finkel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 21:38:24 PDT 2017
hfinkel added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:3068
+def err_impcast_complex_scalar : Error<
+ "implicit conversion discards imaginary component: %0 to %1">;
def warn_impcast_float_precision : Warning<
----------------
I think that, as an error, we should word this differently. How about:
implicit conversion from %0 to %1 is not permitted in C++
https://reviews.llvm.org/D35817
More information about the cfe-commits
mailing list