Thread overview
[Issue 21214] simd: wrong diagnostic with unsupported vectors
Sep 02, 2020
Iain Buclaw
Dec 21, 2020
Walter Bright
Dec 21, 2020
Iain Buclaw
Dec 22, 2020
Dlang Bot
Dec 23, 2020
Dlang Bot
September 02, 2020
https://issues.dlang.org/show_bug.cgi?id=21214

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, SIMD
                 CC|                            |ibuclaw@gdcproject.org

--
December 21, 2020
https://issues.dlang.org/show_bug.cgi?id=21214

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
I don't understand. The diagnostics all look correct to me. The semantics are done bottom up and stop at the first error.

--
December 21, 2020
https://issues.dlang.org/show_bug.cgi?id=21214

--- Comment #2 from Iain Buclaw <ibuclaw@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

--
December 22, 2020
https://issues.dlang.org/show_bug.cgi?id=21214

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12044 "fix Issue 21214 - simd: wrong diagnostic with unsupported vectors" fixing this issue:

- fix Issue 21214 - simd: wrong diagnostic with unsupported vectors

https://github.com/dlang/dmd/pull/12044

--
December 23, 2020
https://issues.dlang.org/show_bug.cgi?id=21214

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12044 "fix Issue 21214 - simd: wrong diagnostic with unsupported vectors" was merged into master:

- 0303ef963aee809888c85d446fc0177f432445b0 by Walter Bright:
  fix Issue 21214 - simd: wrong diagnostic with unsupported vectors

https://github.com/dlang/dmd/pull/12044

--