Skip to content

Commit

Permalink
Merge pull request #2148 from qchikara/WA12661
Browse files Browse the repository at this point in the history
FIX 12661: [REG2.066a] std.regex with -debug causes linker errors
  • Loading branch information
DmitryOlshansky committed May 10, 2014
2 parents 254290d + 6daa57a commit d2f2d34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions std/range.d
Expand Up @@ -8335,8 +8335,19 @@ if (isInputRange!Range)
// Undocummented because a clearer way to invoke is by calling
// assumeSorted.
this(Range input)
out
{
// moved out of the body as a workaround for Issue 12661
dbgVerifySorted();
}
body
{
this._input = input;
}

// Assertion only.
private void dbgVerifySorted()
{
if(!__ctfe)
debug
{
Expand Down

0 comments on commit d2f2d34

Please sign in to comment.