Bug 10160 – No line number "cannot modify struct ... with immutable members"

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-24T01:07:00Z
Last change time
2013-05-24T12:55:48Z
Keywords
diagnostic, pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-05-24T01:07:53Z
This code prints strange no line number error. struct S { this(this) {} } struct X { const int x; S s; } void main() { X x; } output: Error: cannot modify struct this X with immutable members
Comment #1 by k.hara.pg — 2013-05-24T01:09:30Z
This little modified code works with 2.062, but causes same no line number error with git head. struct S { this(this) {} } struct X { const int x = 1; // add initializer S s; } void main() { X x; }
Comment #2 by k.hara.pg — 2013-05-24T01:42:40Z
Comment #3 by github-bugzilla — 2013-05-24T12:43:41Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/19523d9ad7a7882faa176d958e8d171c7f59a7a6 fix Issue 10160 - No line number "cannot modify struct ... with immutable members" https://github.com/D-Programming-Language/dmd/commit/e4fc4dfd654280b6bfda8f393fe0d940eff38cf6 Merge pull request #2073 from 9rnsr/fix10160 [REG2.063a] Issue 10160 - No line number "cannot modify struct ... with immutable members"
Comment #4 by github-bugzilla — 2013-05-24T12:44:46Z
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e23c78550c56f43ff49b0a7560a9e636931ec3b5 Merge pull request #2073 from 9rnsr/fix10160 [REG2.063a] Issue 10160 - No line number "cannot modify struct ... with immutable members"