From code by Dan: http://forum.dlang.org/thread/jbdxsfkpxmsiqcunuppj@forum.dlang.org struct Foo { this(this) {} } alias const(Foo)[int] Bar; void main() { Bar b; foreach (value; b) {} } DMD 2.061alpha gives no error line number: Error: function test2.Foo.__postblit () is not callable using argument types () const
*** This issue has been marked as a duplicate of issue 8954 ***