[llvm-bugs] [Bug 16645] real * complex done wrong

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 29 13:05:35 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=16645

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |DUPLICATE

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Note that we do not have full support for Annex G, and in particular I has
_Complex type, not _Imaginary type. Under Annex G's semantic model,

  _Complex double f(_Complex double I, double infinity) {
    return 0.0 * (0.0 + infinity * I);
  }

gives the same result that Clang gives in this case (nan + nan_i), and likewise
for

  infinity * (infinity + infinity * I)

(where we get nan + inf_i).

So I think the issue here is "Clang does not support _Imaginary" (technically a
feature request, not a bug, since it's an optional feature). Please reopen if
you think there's something deeper that's wrong here.

*** This bug has been marked as a duplicate of bug 8532 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151029/d2a49282/attachment.html>


More information about the llvm-bugs mailing list