//test.d
struct A
{
foo!(A) l1,l2;
}
dmd -main test.d will segfault
Comment #1 by monarchdodra — 2013-09-21T10:34:27Z
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
//---
Comment #2 by lt.infiltrator — 2013-09-21T16:11:31Z
This looks to be fixed in 2.063:
//---
/d741/f473.d(2): Error: template instance foo!(A) template 'foo' is not defined
END
//---