Thread overview
[Issue 13942] [REG2.066] Bad template error message
[Issue 13942] Bad template error message
Jan 06, 2015
Kenji Hara
Jan 06, 2015
Kenji Hara
Jan 18, 2015
Kenji Hara
January 06, 2015
https://issues.dlang.org/show_bug.cgi?id=13942

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
Introduced in: https://github.com/D-Programming-Language/dmd/pull/3332

--
January 06, 2015
https://issues.dlang.org/show_bug.cgi?id=13942

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
Reduced test case:

template isRawStaticArray(T, A...)
{
    enum isRawStaticArray = false;
}

template to(T)
{
    T to(A...)(A args)
        if (!isRawStaticArray!A)
    {
        return 0;
    }
}

void main(string[] args)
{
    auto t = to!double();
}

--
January 18, 2015
https://issues.dlang.org/show_bug.cgi?id=13942

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, pull
            Summary|Bad template error message  |[REG2.066] Bad template
                   |                            |error message

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/4309

--
January 18, 2015
https://issues.dlang.org/show_bug.cgi?id=13942

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6aa2755cd5776a354de2e181e5955f33c0e724c0 fix Issue 13942 - Bad template error message

Partially revert changes in #3332.

https://github.com/D-Programming-Language/dmd/commit/506e31b8a6cab3a046ed61d6a9c2080f1ee81167 Merge pull request #4309 from 9rnsr/fix13942

[REG2.066] Issue 13942 - Bad template error message

--
January 18, 2015
https://issues.dlang.org/show_bug.cgi?id=13942

github-bugzilla@puremagic.com changed:

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

--