[Issue 14835] Statement is not reachable doesn't play along generic code

2019-05-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com --- Comment #10 from

[Issue 14835] Statement is not reachable doesn't play along generic code

2016-10-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 --- Comment #9 from anonymous4 --- (In reply to Walter Bright from comment #8) > but I wonder about its affect on existing code. Will it disable all unreachable code checks? Try this: int square(int num) { if(true)return 0; return num * num;

[Issue 14835] Statement is not reachable doesn't play along generic code

2016-10-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #8 from

[Issue 14835] Statement is not reachable doesn't play along generic code

2016-08-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Les De Ridder changed: What|Removed |Added CC||dl...@lesderid.net --

[Issue 14835] Statement is not reachable doesn't play along generic code

2016-06-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Steven Schveighoffer changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 14835] Statement is not reachable doesn't play along generic code

2016-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com Severity|nor

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Marc Schütz changed: What|Removed |Added CC||schue...@gmx.net --

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 --- Comment #6 from thomas.bock...@gmail.com --- Here's a minimal compilable (requires dmd argument -wi, rather than -w) example, for anyone trying to fix this: module main; import std.stdio; void reachIf(bool x)() { if(!x) return;

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 thomas.bock...@gmail.com changed: What|Removed |Added CC||thomas.bock...@gmail.com --- Comme

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 --- Comment #4 from Steven Schveighoffer --- What the compiler is doing here is giving you information that code you wrote will not get executed. The problem is that the code in question is only one *particular* execution (or instantiation) of that

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 --- Comment #3 from Mathias LANG --- Note that with this implementation you get an error (missing return) in 2.068.0, but 2.069.0-b1 fixed that. But the point is not about the actual implementation, but the effect of this warning. It makes meta code

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment #2 fr

[Issue 14835] Statement is not reachable doesn't play along generic code

2015-10-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14835 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #1 from Martin Nowak