https://issues.dlang.org/show_bug.cgi?id=14835
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
--- Comment #10 from
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;
https://issues.dlang.org/show_bug.cgi?id=14835
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #8 from
https://issues.dlang.org/show_bug.cgi?id=14835
Les De Ridder changed:
What|Removed |Added
CC||dl...@lesderid.net
--
https://issues.dlang.org/show_bug.cgi?id=14835
Steven Schveighoffer changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=14835
Jack Stouffer changed:
What|Removed |Added
CC||j...@jackstouffer.com
Severity|nor
https://issues.dlang.org/show_bug.cgi?id=14835
Marc Schütz changed:
What|Removed |Added
CC||schue...@gmx.net
--
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;
https://issues.dlang.org/show_bug.cgi?id=14835
thomas.bock...@gmail.com changed:
What|Removed |Added
CC||thomas.bock...@gmail.com
--- Comme
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
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
https://issues.dlang.org/show_bug.cgi?id=14835
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment #2 fr
https://issues.dlang.org/show_bug.cgi?id=14835
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
--- Comment #1 from Martin Nowak
13 matches
Mail list logo