You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugzilla (@WalterBright) commented on 2018-01-04T00:21:35Z
The failing test case is:
string gen() {
string m;
foreach(i; 0..4096)
m ~= "mixin(\"assert(0);\n\n\n\n\");\n";
return m;
}
void main() {
mixin(gen());
}
bugzilla (@WalterBright) commented on 2018-01-04T00:25:45Z
This is a stack overflow caused by having 4096 expression statements. The compiler joins them with a commaexpression, and then recursively traverses it. The best fix would be to convert it to an array or list of expression statements, but that would have ripple effects throughout the back end.
Martin Nowak (@MartinNowak) reported this on 2018-01-03T22:15:34Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18189
CC List
Description
!!!There are attachements in the bugzilla issue that have not been copied over!!!
The text was updated successfully, but these errors were encountered: