Bug 17539 – std.parallellism.parallel triggers 'statement not reachable' warnings in the rdmd_test suite

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-06-21T07:38:42Z
Last change time
2018-01-05T13:29:26Z
Assigned to
No Owner
Creator
Seb

Comments

Comment #0 by greensunny12 — 2017-06-21T07:38:42Z
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
Comment #1 by github-bugzilla — 2017-07-04T20:18:15Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f3770ba1d675ed952012cbfc8dd38b823e1d3ca7 Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable' https://github.com/dlang/phobos/commit/c0652345e992a312d3df2005f56e1b9b7eb1e8c3 Merge pull request #5502 from wilzbach/fix-17539 Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable' merged-on-behalf-of: Vladimir Panteleev <[email protected]>
Comment #2 by github-bugzilla — 2017-08-16T13:23:05Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f3770ba1d675ed952012cbfc8dd38b823e1d3ca7 Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable' https://github.com/dlang/phobos/commit/c0652345e992a312d3df2005f56e1b9b7eb1e8c3 Merge pull request #5502 from wilzbach/fix-17539
Comment #3 by github-bugzilla — 2018-01-05T13:29:26Z
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f3770ba1d675ed952012cbfc8dd38b823e1d3ca7 Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable' https://github.com/dlang/phobos/commit/c0652345e992a312d3df2005f56e1b9b7eb1e8c3 Merge pull request #5502 from wilzbach/fix-17539