Bug 2880 – DMD is generating the wrong file & line number for a (new) phobos error in conv.text. traits.d:1011 conv.d:2454
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-22T13:01:00Z
Last change time
2015-06-09T01:26:25Z
Keywords
diagnostic
Assigned to
nobody
Creator
sandford
Comments
Comment #0 by sandford — 2009-04-22T13:01:41Z
// 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)
Comment #1 by andrej.mitrovich — 2012-10-21T17:13:19Z