[Issue 2880] New: DMD is generating the wrong file & line number for a (new) phobos error in conv.text. traits.d:1011 conv.d:2454

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 22 11:01:34 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2880

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


// 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
reported)


-- 



More information about the Digitalmars-d-bugs mailing list