www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9420] New: [2.062alpha] Weird "(null)" output in error message

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

           Summary: [2.062alpha] Weird "(null)" output in error message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-01-28 23:08:16 PST ---
This code prints weird error message.

code:
----
mixin template Mixin() { }
struct S
{
    template t3(T...)
    {
        void tx(T){}
        alias t3 = tx;  // no fwdref error...
    }
}
void main()
{
    S s1;
    s1.t3!()(1);  // line 14
}

output:
----
test.d(14): Error: function test.S.t3!().tx ()(null) is not callable using
argument types (int)
test.d(14): Error: expected 0 arguments, not 1 for non-variadic function type
pure nothrow  safe void()

`test.S.t3!().tx ()(null)` is incorrect.

This is introduced by:
https://github.com/D-Programming-Language/dmd/commit/c210663497a46e6cb2b805332d7de69ada23480e

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 28 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9420


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-01-28 23:55:29 PST ---
https://github.com/D-Programming-Language/dmd/pull/1577

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



--- Comment #2 from github-bugzilla puremagic.com 2013-01-29 00:31:50 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4c25eb2681642d482fe28b6b0eafe7fdf5a28e0b
fix Issue 9420 - [2.062alpha] Weird "(null)" output in error message

https://github.com/D-Programming-Language/dmd/commit/e2aa18cbeff57e94fba284811189f63999636099
Merge pull request #1577 from 9rnsr/fix9420

Issue 9420 - [2.062alpha] Weird "(null)" output in error message

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


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


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