//test.d struct A { foo!(A) l1,l2; } dmd -main test.d will segfault
This is a 2.061 => 2.062 regression: 2.061: //--- main.d(3): Error: template instance foo!(A) template 'foo' is not defined main.d(3): Error: foo!(A) is used as a type main.d(3): Error: foo!(A) is used as a type END //--- 2.062: //--- main.d(3): Error: template instance foo!(A) template 'foo' is not defined main.d(3): Error: foo!(A) is used as a type CRASH //---
This looks to be fixed in 2.063: //--- /d741/f473.d(2): Error: template instance foo!(A) template 'foo' is not defined END //---
https://github.com/D-Programming-Language/dmd/pull/2583
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/63473a81679298affd8b1791e20513d07a810ddd fix Issue 11086 - dmd segfault https://github.com/D-Programming-Language/dmd/commit/b1e8e111c2024472f5abd64487f1bff0e32b17e3 Merge pull request #2583 from 9rnsr/fix11086 [REG2.062] Issue 11086 - dmd segfault