This D2 code looks correct: void main() { const struct S1 {} immutable struct S2 {} static const struct S3 {} static immutable struct S4 {} } But DMD 2.050 shows the compilation errors: test.d(2): basic type expected, not struct test.d(2): no identifier for declarator int test.d(2): semicolon expected, not 'struct' test.d(3): basic type expected, not struct test.d(3): no identifier for declarator int test.d(3): semicolon expected, not 'struct' test.d(4): basic type expected, not struct test.d(4): no identifier for declarator int test.d(4): semicolon expected, not 'struct' test.d(5): basic type expected, not struct test.d(5): no identifier for declarator int test.d(5): semicolon expected, not 'struct'
*** This issue has been marked as a duplicate of issue 6534 ***