Bug 13379 – Latest dmd fails with recursive template expansion in std.regex
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-27T00:12:00Z
Last change time
2014-09-02T02:14:24Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
hsteoh
Comments
Comment #0 by hsteoh — 2014-08-27T00:12:09Z
Test case (use Phobos git HEAD to reproduce):
------
void main()
{
import std.regex : match;
"".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