www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9549] New: Regression (2.062): Compiler spits out unrelated messages on error

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9549

           Summary: Regression (2.062): Compiler spits out unrelated
                    messages on error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-02-19
20:54:50 PST ---
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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 19 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9549



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-02-25
09:45:56 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 25 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9549


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 25 2013