[Issue 21214] New: simd: wrong diagnostic with unsupported vectors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 2 09:32:07 UTC 2020


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

          Issue ID: 21214
           Summary: simd: wrong diagnostic with unsupported vectors
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

__vector(__vector(int[2])[2]) v2x2;
__vector(__vector(int[2])[4]) v2x4;
__vector(__vector(int[4])[2]) v4x2;
__vector(__vector(int[4])[4]) v4x4;


The given test above yields the following errors:

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
test.d(2): Error: 8 byte vector type __vector(int[2]) is not supported on this
platform
test.d(2): Error: 8 byte vector type __vector(int[2]) is not supported on this
platform
test.d(3): Error: vector type __vector(__vector(int[4])[2]) is not supported on
this platform
test.d(4): Error: vector type __vector(__vector(int[4])[4]) is not supported on
this platform

Instead, they should all produce an error like line 3 and 4.

--


More information about the Digitalmars-d-bugs mailing list