[Issue 20167] Issue warning when result discarded from strong pure function?

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20167 --- Comment #2 from Manu --- Interesting. I did this same test, but I didn't have `nothrow`. Why wasn't `nothrow` inferred for this trivial function where the source is as plain as day to the compiler? We're meant to be all about attribute

[Issue 20167] Issue warning when result discarded from strong pure function?

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20167 Dennis changed: What|Removed |Added CC||dkor...@live.nl --- Comment #1 from Dennis ---

[Issue 20167] New: Issue warning when result discarded from strong pure function?

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20167 Issue ID: 20167 Summary: Issue warning when result discarded from strong pure function? Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 20021] `static if` doesn't evaluate `opCast(T : bool)`

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20021 --- Comment #5 from Dlang Bot --- dlang/dmd pull request #10348 "Merge remote-tracking branch 'upstream/stable' into merge_stable" was merged into master: - 421e9ce137c6aff941ebde92863c53292226a0b3 by aG0aep6G: fix issue 20021 - static if doesn't

[Issue 13818] Unhelpful error message for rvalue reference: incompatible types for ((S()) + (S())): 'S' and 'S'

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13818 --- Comment #2 from Ali Cehreli --- There is no issue with both operands being S. The issue seems to be the fact that the second operand is an rvalue. So, a helpful message would be "cannot bind rvalue S to ref parameter". Ali --

[Issue 20163] Deprecated import in string mixin does not output diagnostic message

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20163 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot ---

[Issue 15651] filter: only parameters or stack based variables can be inout

2019-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15651 --- Comment #6 from Harry Vennik --- (In reply to Steven Schveighoffer from comment #3) > In fact, we should allow inout to be used ANYWHERE, except global variables > (as putting inout variables in global space can change the meaning from call > to