|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
http://d.puremagic.com/issues/show_bug.cgi?id=575 Summary: wrong evaluation of (creal * 2 + 1i) Product: GDC Version: 0.19 Platform: PC OS/Version: Linux Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: glue layer AssignedTo: braddr puremagic.com ReportedBy: thomas-dloop kuehne.cn # cfloat test_f(cfloat a){ # return a * 2 + 1i; # } # cdouble test_d(cdouble a){ # return a * 2 + 1i; # } # creal test_r(creal a){ # return a * 2 + 1i; # } # # import std.stdio; # void main(){ # cfloat f = 1.0 + 2.0i; # writefln("f:\t%s", f * 2 + 1i); # writefln("test_f:\t%s", test_f(f)); # # cdouble d = 1.0 + 2.0i; # writefln("d:\t%s", d * 2 + 1i); # writefln("test_d:\t%s", test_d(d)); # # creal r = 1.0 + 2.0i; # writefln("r:\t%s", r * 2 + 1i); # writefln("test_r:\t%s", test_r(r)); # # writefln("direct:\t%s", (1.0 + 2.0i) * 2 + 1i); # } output:f: 3+4i test_f: 3+4i d: 3+4i test_d: 3+4i r: 3+4i test_r: 3+4i direct: 2+5i Nov 19 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-11-19:http://d.puremagic.com/issues/show_bug.cgi?id=575 Nov 25 2006
http://d.puremagic.com/issues/show_bug.cgi?id=575 braddr puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|braddr puremagic.com |dvdfrdmn users.sf.net ------- Comment #2 from braddr puremagic.com 2006-11-25 15:08 ------- Mass reassignment of gdc bugs from me to David. -- Nov 25 2006
http://d.puremagic.com/issues/show_bug.cgi?id=575 dvdfrdmn users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Dec 16 2006
http://d.puremagic.com/issues/show_bug.cgi?id=575 dvdfrdmn users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #3 from dvdfrdmn users.sf.net 2006-12-16 21:22 ------- Fixed in GDC 0.20 -- Dec 16 2006
|