[LLVMbugs] [Bug 20083] real / complex wrong

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 9 12:14:22 PST 2015


Nathan Sidwell <nathan at acm.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |nathan at acm.org
         Resolution|---                         |FIXED

--- Comment #1 from Nathan Sidwell <nathan at acm.org> ---
Appears resolved:
#include <stdio.h>
#include <complex.h>
#define FLT_MIN 1.17549435E-38

int main (void)
  float f;
  float complex fc;
  fc = f = FLT_MIN;
  fc = f / fc;

  printf ("fc=%e + %ei\n", __real__(fc), __imag__(fc));

  return 0;

nathan at morden:33>obj/Debug+Asserts/bin/clang 20083.cc 
nathan at morden:34>./a.out 
fc=1.000000e+00 + 0.000000e+00i

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/20150109/275b0dfd/attachment.html>

More information about the llvm-bugs mailing list