[Issue 12429] SIMD vector type errors are too eager

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 9 01:55:11 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12429

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com

--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Don from comment #1)
> I think you meant is(typeof(MakeVecType!(BaseT, 8)))
> 
> is() on its own doesn't suppress error messages.

Huh? That's not right.

alias DerefOf(X) = typeof(*X.init);

static if (is(DerefOf!int))
{
    pragma(msg, "int is dereferenceable");
}
else
{
    pragma(msg, "int is not dereferenceable");
}

--


More information about the Digitalmars-d-bugs mailing list