D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17582 - [REG2.059] Applying const to struct declaration should make the struct type const
Summary: [REG2.059] Applying const to struct declaration should make the struct type c...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-02 06:50 UTC by Walter Bright
Modified: 2017-08-16 13:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2017-07-02 06:50:47 UTC
The following should compile:

  const struct S {
    int x;
  }

  static assert(is(S == const(S)));
Comment 1 Walter Bright 2017-07-02 07:04:31 UTC
Regression introduced by:

https://github.com/dlang/dmd/pull/783
Comment 2 github-bugzilla 2017-07-03 21:35:10 UTC
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…
Comment 3 github-bugzilla 2017-08-07 13:17:11 UTC
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
Comment 4 github-bugzilla 2017-08-16 13:23:14 UTC
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