Bug 12657 – Regression (2.065): Running Phobos test-suite with -debug fails

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-26T19:22:00Z
Last change time
2014-06-20T16:35:47Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2014-04-26T19:22:36Z
Not sure if Phobos or DMD regression, but: $ rdmd --main -w -g -unittest --force std\algorithm.d > $ rdmd --main -w -debug -g -unittest --force std\algorithm.d ---- std\algorithm.d(9385): Error: 'std.algorithm.sort!("a > b", cast(SwapStrategy)0, int[]).sort' is not nothrow std\algorithm.d(9388): Error: 'std.algorithm.sort!("a < b", cast(SwapStrategy)0, int[]).sort' is not nothrow std\algorithm.d(9392): Error: 'std.algorithm.__unittestL9381_263.sort!(myComp, cast(SwapStrategy)0, int[]).sort' is not nothrow std\algorithm.d(9381): Error: function 'std.algorithm.__unittestL9381_263' is nothrow yet may throw ---- Either way it exposes that we're not running the test-suite with -debug.
Comment #1 by k.hara.pg — 2014-06-20T16:35:47Z
The root issue is same with issue 12661. When you specify -debug switch, SortedRange constructor had being changed to non nothrow. The change was introducde in https://github.com/D-Programming-Language/phobos/pull/2075, and now the workaround https://github.com/D-Programming-Language/phobos/pull/2148 also fixes this issue. *** This issue has been marked as a duplicate of issue 12661 ***