summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/complex-conversion.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sema: disable implicit conversion from _Complex to real types in C++.Tim Northover2017-08-081-0/+18
Converting a _Complex type to a real one simply discards the imaginary part. This can easily lead to loss of information so for safety (and GCC compatibility) this patch disallows that when the conversion would be implicit. The one exception is bool, which actually compares both real and imaginary parts and so is safe. llvm-svn: 310427
OpenPOWER on IntegriCloud