DMD 2.063 does not print any error message at line 10.
// from dmd test suite fail_compilation/fail340.d
---
struct CopyTest
{
double x;
this(double a) { x = a * 10.0;}
this(this) { x += 2.0; }
}
const CopyTest z = CopyTest(5.3);
const CopyTest w = z; // line 10
static assert(w.x == 55.0);
---
Output:
dmd2.062:
test.d(10): Error: variable test.w of type struct const(CopyTest) uses this(this), which is not allowed in static initialization
dmd2.063:
(no error message)