www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13379] New: Latest dmd fails with recursive template


          Issue ID: 13379
           Summary: Latest dmd fails with recursive template expansion in
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: hsteoh quickfur.ath.cx

Test case (use Phobos git HEAD to reproduce):
void main()
    import std.regex : match;

Compiler output:
/usr/src/d/phobos/std/algorithm.d(7168): Error: template instance
std.algorithm.MinType!(uint, uint) recursive expansion

git bisect reveals that the offending commit in dmd is:
9202b529b329ce0087ae976aa8bf1deadd1b62de Distinguish speculative instantiation
from gagged one to elide unnecessary symbol emission

Aug 26 2014