← Back to index
|
Original Bugzilla link
Bug 17722 – Wrong diagnostic using __traits(compiles, e1 && e2) expressions.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-08-05T01:19:21Z
Last change time
2017-08-16T13:24:16Z
Assigned to
Iain Buclaw
Creator
Iain Buclaw
Comments
Comment #0
by ibuclaw — 2017-08-05T01:19:21Z
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 ||.
Comment #1
by ibuclaw — 2017-08-08T07:09:44Z
https://github.com/dlang/dmd/pull/7067
Comment #2
by github-bugzilla — 2017-08-08T21:33:26Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ec3494661edce54b2e72efd762247532e433cec1
fix Issue 17722 - Wrong diagnostic using __traits(compiles, e1 && e2) expressions
https://github.com/dlang/dmd/commit/bfee6b36fbcf2752e3c94d8bd8089779bad807e6
Merge pull request #7067 from ibuclaw/issue17722 fix Issue 17722 - Wrong diagnostic using __traits(compiles, e1 && e2) expressions merged-on-behalf-of: Walter Bright <
[email protected]
>
Comment #3
by github-bugzilla — 2017-08-16T13:24:16Z
Commits pushed to stable at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ec3494661edce54b2e72efd762247532e433cec1
fix Issue 17722 - Wrong diagnostic using __traits(compiles, e1 && e2) expressions
https://github.com/dlang/dmd/commit/bfee6b36fbcf2752e3c94d8bd8089779bad807e6
Merge pull request #7067 from ibuclaw/issue17722