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, …)?
Walter confirmed that this should be allowed. Pull request fixing the test: https://github.com/D-Programming-Language/dmd/pull/1191
David
