[LLVMbugs] [Bug 2468] New: clang mixes up complex numbers
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Tue Jun 17 01:05:26 PDT 2008
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=2468
           Summary: clang mixes up complex numbers
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: filcab at gmail.com
                CC: llvmbugs at cs.uiuc.edu
clang doesn't give expected results with the following program:
[filcab at farnsworth ~] $ cat b.c
#include <complex.h>
#include <stdio.h>
int main(int argc, char **argv)
{
  complex double long c = 3+I*42;
  printf("%g + I%g\n", creal(c), cimag(c));
  return 0;
}
[filcab at farnsworth ~] $ gcc --std=c99 b.c -o b
[filcab at farnsworth ~] $ ./b
3 + I42
[filcab at farnsworth ~] $ ccc --std=c99 b.c -o b
b.c
clang -emit-llvm-bc -o b.o b.c
llvm-ld -native -disable-internalize -o b b.o
[filcab at farnsworth ~] $ ./b
2.06895e-313 + I-3.81583e-232
[filcab at farnsworth ~] $
-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
    
    
More information about the llvm-bugs
mailing list