Thread overview
[Issue 13379] Latest dmd fails with recursive template expansion in std.regex
Aug 27, 2014
Kenji Hara
Aug 29, 2014
Kenji Hara
Aug 29, 2014
Vladimir Panteleev
Aug 29, 2014
John Colvin
August 27, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

--- Comment #1 from hsteoh@quickfur.ath.cx ---
The corresponding dmd pull was: https://github.com/D-Programming-Language/dmd/pull/3874

--
August 27, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

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

void main()
{
    match("");
}

// Instantiating Regex!char in template constraint
auto match(RegEx )(RegEx  re) if (is(RegEx == Regex!(char))) {}
auto match(String)(String re) {}

struct Regex(Char)
{
    ShiftOr!Char kickstart;
}
struct ShiftOr(Char)
{
    this(ref Regex!Char re)    // Regex!Char is necessary
    {
        uint n_length;
        uint idx;
        n_length = min(idx, n_length);
    }
}

MinType!T min(T...)(T args)// if (T.length == 2)
{
    alias a = args[0];
    alias b = args[$-1];
    return cast(typeof(return)) (a < b ? a : b);
}
template MinType(T...)// if (T.length == 2)
{
    alias MinType = T[0];
}

--
August 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

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

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

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

--
August 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com

--- Comment #4 from Vladimir Panteleev <thecybershadow@gmail.com> ---
*** Issue 13398 has been marked as a duplicate of this issue. ***

--
August 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

--- Comment #5 from John Colvin <john.loughran.colvin@gmail.com> ---
This issue currently prevents dub from compiling on git HEAD.

--
August 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

--- Comment #6 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/5efa203c22ba4b49f2366f71d1104c2aaf37b144
fix Issue 13379 - Latest dmd fails with recursive template expansion in
std.regex

https://github.com/D-Programming-Language/dmd/commit/178d02e1dac49ba9ac301183037146c5d8d68e2a Merge pull request #3905 from 9rnsr/fix13379

[REG2.067a] Issue 13379 - Latest dmd fails with recursive template expansion in std.regex

--
August 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

github-bugzilla@puremagic.com changed:

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

--
September 02, 2014
https://issues.dlang.org/show_bug.cgi?id=13379

--- Comment #7 from github-bugzilla@puremagic.com ---
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f3a52eac94c30d6a2917504a1d2be2ef8e0f2ba3 Merge pull request #3905 from 9rnsr/fix13379

[REG2.067a] Issue 13379 - Latest dmd fails with recursive template expansion in std.regex

--