[Issue 21214] simd: wrong diagnostic with unsupported vectors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 21 11:34:45 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21214
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #1)
> I don't understand. The diagnostics all look correct to me. The semantics
> are done bottom up and stop at the first error.
The error occurs twice:
test.d(1): Error: 8 byte vector type __vector(int[2]) is not supported on this
platform
test.d(1): Error: 8 byte vector type __vector(int[2]) is not supported on this
platform
The second error is wrong, as the basetype of the outer vector is not `int[2]`.
A more accurate diagnostic would be:
test.d(1): Error: 8 byte vector type __vector(int[2]) is not supported on this
platform
test.d(1): Error: vector type __vector(__vector(int[2])[2]) is not supported on
this platform
--
More information about the Digitalmars-d-bugs
mailing list