[Issue 10738] New: double2 ^^ 2 and double2 ^^ 3 are missing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 31 14:33:04 PDT 2013


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

           Summary: double2 ^^ 2 and double2 ^^ 3 are missing
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-07-31 14:33:02 PDT ---
import std.math;
import core.simd: double2;
void main() {
    double2 x;
    double2 y = x ^^ 2;
    double2 z = x ^^ 3;
}


Gives errors like:

test.d:5: Error: template std.math.pow does not match any function template
declaration
.../math.d:3180: Error: template std.math.pow cannot deduce template function
from argument types !()(__vector(double[2LU]),__vector(double[2LU]))


Similar errors are generated by ldc2 on Windows32.

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