The following should compile: const struct S { int x; } static assert(is(S == const(S)));
Regression introduced by: https://github.com/dlang/dmd/pull/783
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07452c208c6164292c46bff3292586b659856376 fix Issue 17582 - Applying const to struct declaration should make the struct type const https://github.com/dlang/dmd/commit/8e85f9fd1c1621df9b80b21162ec70ca210da789 Merge pull request #6958 from WalterBright/fix17582 fix Issue 17582 - Applying const to struct declaration should make thβ¦
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07452c208c6164292c46bff3292586b659856376 fix Issue 17582 - Applying const to struct declaration should make the struct type const https://github.com/dlang/dmd/commit/8e85f9fd1c1621df9b80b21162ec70ca210da789 Merge pull request #6958 from WalterBright/fix17582
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07452c208c6164292c46bff3292586b659856376 fix Issue 17582 - Applying const to struct declaration should make the struct type const https://github.com/dlang/dmd/commit/8e85f9fd1c1621df9b80b21162ec70ca210da789 Merge pull request #6958 from WalterBright/fix17582