[Issue 9115] New: Internal error when compiling core.simd float4 expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 5 16:55:01 PST 2012


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

           Summary: Internal error when compiling core.simd float4
                    expression
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: fak at praeclarum.org


--- Comment #0 from Frank A. Krueger <fak at praeclarum.org> 2012-12-05 16:55:00 PST ---
Trying to compile this program:

---
import std.stdio;
import core.simd;

void main()
{
    float4 a = 0;
    float4 b = 1;
    writefln ("a = %(%s %)", a.array);
    writefln ("b = %(%s %)", b.array);

    //float4 c = a - b; //this works
    //writefln ("a - b = %(%s %)", c.array); //this doesn't

    writefln ("a - b = %(%s %)", (a-b).array); //this doesn't
}
---

Results in "Internal error: e2ir.c 155" with "DMD64 D Compiler v2.060" on OS X
10.8.2

The errors seems to be with the expression "(a-b).array". If I use a variable
to store the expression value first, then all is well.

-- 
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