The following code compiled with DMD 2.078.1, but does not compile since DMD 2.079.1:
struct Template(int i) { }
uint f()
{
Template!(1) x;
return 0;
}
immutable constant = f();
alias X = Template!constant;
DMD now prints the following error:
test.d(4): Error: struct `test.Template(int i)` recursive template expansion
test.d(4): while looking for match for `Template!1`
test.d(7): called from here: `f()`
test.d(8): while looking for match for `Template!(constant)`
Comment #1 by ibuclaw — 2022-12-27T18:02:41Z
*** This issue has been marked as a duplicate of issue 18646 ***