www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17722] New: Wrong diagnostic using vector && vector

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

          Issue ID: 17722
           Summary: Wrong diagnostic using vector && vector expressions.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

import core.simd;
byte16 v1,v2,v3;
static assert(__traits(compiles, v1 && v2));
static assert(__traits(compiles, v1 || v2));

The error(s) I get are:
Error: static assert  (__traits(compiles, (__error) && (__error))) is false

Other expressions look fine, it's just && and ||.

--
Aug 04