Summary: DMD is generating the wrong file & line number for a
                    (new) phobos error in conv.text. traits.d:1011
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: DMD

// test case
immutable foo = 4;
// immutable uint foo = 4; // Fixes the error
auto t = std.conv.text(foo); // Error

// DMD output
C:\dmd\src\phobos\std\traits.d:1011: Error: static assert  "Type immutable(int)
does not have an Unsigned counterpart"
C:\dmd\src\phobos\std\traits.d:2454: Error: template instance
std.traits.Unsigned!(immutable(int)) error instantiating
C:\dmd\src\phobos\std\conv.d:2454: Error: Unsigned!(immutable(int)) is used as
a type

Note that traits.d only has 1148 lines. Also, the trace does not contain enough
information to track down the problem (i.e. only functions in phobos are


Reply via email to