On 10/17/2012 11:10 AM, David Nadlinger wrote: > Thus, my question: Is it legal for a D compiler to eliminate dead GC allocations > (given that there are no side effects due to constructors, …)?
Yes. The test case can be fixed by attempting to use the result of new.