Bug 9549 – Regression (2.062): Compiler spits out unrelated messages on error

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-19T20:54:00Z
Last change time
2013-02-25T10:10:06Z
Keywords
diagnostic
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-02-19T20:54:50Z
import std.range; void main() { int x; x ~= 1.0; } 2.061: $ dmd -unittest test.d > test.d(6): Error: cannot append type double to type int 2.062: $ dmd -unittest test.d test.d(6): Error: cannot append type double to type int D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\range.d(611): Error: static assert "Cannot put a char[] into a A ppender!(string)" D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(1436): instantiated from here: put!(Appender!(str ing), char[]) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(1338): instantiated from here: formatUnsigned!(Ap pender!(string), char) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(1312): instantiated from here: formatIntegral!(Ap pender!(string), ulong, char) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\conv.d(100): ... (6 instantiations, -v to show) ... D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\complex.d(144): instantiated from here: formattedWrite!(vo id delegate(const(char)[]), char, const(real)) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\complex.d(678): instantiated from here: Complex!(real)
Comment #1 by andrej.mitrovich — 2013-02-25T09:45:56Z
Fixed in https://github.com/D-Programming-Language/dmd/pull/1676, however it doesn't seem deliberate. Waiting for Kenji's response before I close this.