[Issue 17539] New: std.parallellism.parallel triggers 'statement not reachable' warnings in the rdmd_test suite
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 21 00:38:42 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17539
Issue ID: 17539
Summary: std.parallellism.parallel triggers 'statement not
reachable' warnings in the rdmd_test suite
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
Reduced test from https://github.com/dlang/tools/blob/master/rdmd_test.d:
void runConcurrencyTest()
{
import std.parallelism : parallel;
import std.random : rndGen;
foreach (rnd; rndGen.parallel) {}
}
Output:
/home/seb/dlang/dmd/generated/linux/release/64/../../../../../phobos/std/parallelism.d(3523):
Warning: statement is not reachable
/home/seb/dlang/dmd/generated/linux/release/64/../../../../../phobos/std/parallelism.d(3523):
Warning: statement is not reachable
--
More information about the Digitalmars-d-bugs
mailing list