[Issue 7806] ICE(gloop.c) iterating with idouble, when compiling with -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 4 12:40:46 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7806


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2013-10-04 12:40:44 PDT ---
A simpler version without all the templates:

import core.stdc.stdio;

void main()
{
    for (idouble i = -2i; i <= 2i; i += .125i)
        for (double r = -2; r <= 2; r += .0625)
        {
            cdouble c = r + i;
            printf("%g %gi\n", c.re, c.im);
        }
}

Which does not produce an internal error with -O, but does go into an infinite
loop when the compiled program is executed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list