www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17961] New: Git HEAD std.uni does not compile with -unittest

https://issues.dlang.org/show_bug.cgi?id=17961

          Issue ID: 17961
           Summary: Git HEAD std.uni does not compile with -unittest
                    -dip1000
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: hsteoh quickfur.ath.cx

Code:
-------
/* test.d */
import std.uni;
-------

Compile command:
-------
dmd -dip1000 -unittest -c test.d
-------

Compiler output:
-------
/usr/src/d/phobos/std/uni.d(2554): Error: reference to local variable
__tmpfordtor853 assigned to non-scope parameter this calling
std.uni.InversionList!(GcPolicy).InversionList.byInterval
/usr/src/d/phobos/std/uni.d(1976): Error: template instance
std.uni.InversionList!(GcPolicy) error instantiating
-------

This used to work fine until recently. Will post an update once I finish git
bisecting.

--
Nov 02