www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22056] New: [Reg 2.074] std.traits.isFloatingPoint,


          Issue ID: 22056
           Summary: [Reg 2.074] std.traits.isFloatingPoint, isNumeric,
                    isUnsigned, & isSigned should never be true for SIMD
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

Below code fails from 2.074 onward:

import core.simd : int4, uint4, float4;
import std.traits;

static assert(!isFloatingPoint!float4);
static assert(!isNumeric!float4);
static assert(!isSigned!float4);
static assert(!isNumeric!int4);
static assert(!isSigned!int4);
static assert(!isNumeric!uint4);
static assert(!isUnsigned!uint4);

Note that in 2.074 isIntegral remained false for uint4 and int4, creating an

Jun 21 2021