Thread overview
[Issue 19107] -de produces compilation error, -dw does not
Jul 25, 2018
Mike Franklin
Jul 26, 2018
Mike Franklin
Jul 26, 2018
Mike Franklin
July 25, 2018
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #1 from Mike Franklin <slavo5150@yahoo.com> ---
Further reduced:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


--- manager.d
module manager;

import std.algorithm;
import git;

class DManager
{
    void getCacheState(string[string] history)
    {
        string[] componentNames;

        foreach (submoduleCommits; history)
        {
            componentNames.all!(componentName => componentName.I!(component =>
component));
        }
    }
}

--
July 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #2 from Mike Franklin <slavo5150@yahoo.com> ---
Further reduced to no longer require Phobos:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


--- manager.d
module manager;
import git;

template all(alias pred = "a")
{
    bool all(T)(T range)
        if (is(typeof(I!pred(range))))
    {
        return false;
    }
}

class DManager
{
    void getCacheState(string[] history)
    {
        string[] componentNames;

        foreach (submoduleCommits; history)
        {
            componentNames.all!(componentName => componentName.I!(component =>
component));
        }
    }
}

--
July 26, 2018
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #3 from Mike Franklin <slavo5150@yahoo.com> ---
Even further reduced:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


--- manager.d
module manager;
import git;

template all(alias pred)
{
    void all(T)(T t)
        if (is(typeof(I!pred(t))))
    { }
}

void main(string[] args)
{
    args.all!(c => c);
}

--
July 31, 2018
https://issues.dlang.org/show_bug.cgi?id=19107

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

https://github.com/dlang/dmd/commit/305f34e3ba8a46ba81e55c968c1da0f06fe3fe9e Fix Issue 19107 - -de produces compilation error, -dw does not

https://github.com/dlang/dmd/commit/03e7693150c453055b098768e59ebd31cb3ca52e Merge pull request #8519 from JinShil/fix_19107

Fix Issue 19107 - -de produces compilation error, -dw does not

--
July 31, 2018
https://issues.dlang.org/show_bug.cgi?id=19107

github-bugzilla@puremagic.com changed:

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

--