digitalmars.D.bugs - [Issue 22056] New: [Reg 2.074] std.traits.isFloatingPoint,
- d-bugmail puremagic.com (30/30) Jun 21 2021 https://issues.dlang.org/show_bug.cgi?id=22056
https://issues.dlang.org/show_bug.cgi?id=22056 Issue ID: 22056 Summary: [Reg 2.074] std.traits.isFloatingPoint, isNumeric, isUnsigned, & isSigned should never be true for SIMD vectors 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 inconsistency. --
Jun 21 2021