www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9115] New: Internal error when compiling core.simd float4 expression


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

--- Comment #0 from Frank A. Krueger <fak 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

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: -------
Dec 05 2012