August 30, 2013 [Issue 10927] New: Power of complex number causes an internal error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10927 Summary: Power of complex number causes an internal error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: ttanjo@gmail.com --- Comment #0 from Tomoya Tanjo <ttanjo@gmail.com> 2013-08-30 06:32:21 PDT --- The following code causes an internal error in dmd v2.064-devel-2d0de85 on Linux 64bit. --- void main() { auto a = (1+2i)^^3; } --- Output: $ rdmd error.d 1.00000 cdouble 0x1bfe8e0 cdouble 0x1bfe8e0 ty = 29, tym = 19 Internal error: e2ir.c 1424 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 30, 2013 [Issue 10927] Power of complex number causes an internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomoya Tanjo | http://d.puremagic.com/issues/show_bug.cgi?id=10927 --- Comment #1 from hsteoh@quickfur.ath.cx 2013-08-30 15:34:55 PDT --- Built-in complex numbers are deprecated; instead, use std.complex: ---- import std.complex; import std.stdio; void main() { writeln(complex(1,2)^^3); // prints -11-2i } ---- I'll leave this bug open, though, since an ICE is a problem even if it's caused by deprecated features. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation