← Back to index
|
Original Bugzilla link
Bug 10115 – More @disabled holes
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-18T13:10:00Z
Last change time
2013-09-15T00:16:40Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0
by bugzilla — 2013-05-18T13:10:36Z
struct S { int a; @disable this(); this(int) { a = 1; } ~this() { assert(a !is 0); } } enum E : S { A = S.init } union U { S s; this(this) { assert (s.a !is 0); } ~this() { assert (s.a !is 0); } } void foo(out S s, out E e, out U u) { } void main() { S[] arr; arr.length = 5; // compiles E[] e; e.length = 5; // compiles S[1] x = (S[1]).init; // compiles U[] u; u.length = 5; //compiles foo(arr[0], e[0], u[0]); // compiles } -- reported by Maxim Fomin
Comment #1
by bugzilla — 2013-05-18T20:15:31Z
https://github.com/D-Programming-Language/dmd/pull/2052
Comment #2
by github-bugzilla — 2013-05-18T22:29:42Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/7293d5482d054d55b2cd3078f4e0c4ae1f9b11be
fix Issue 10115 - More @disabled holes
https://github.com/D-Programming-Language/dmd/commit/598f30db3a9e2de88fbaa0fdafe0c5ce0eb2f9e6
Merge pull request #2052 from 9rnsr/fix10115 Issue 10115 - More @disabled holes
Comment #3
by github-bugzilla — 2013-05-18T22:31:01Z
Commit pushed to 2.063 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/0275c56cbaa09d6ec49e978bd011eb5b0a9b62aa
Merge pull request #2052 from 9rnsr/fix10115 Issue 10115 - More @disabled holes
Comment #4
by hsteoh — 2013-08-30T14:09:44Z
Commit 0275c56cbaa09 introduced issue #10630
Comment #5
by github-bugzilla — 2013-09-15T00:16:40Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/b8b99a8148e730c067297d0dfd702bbbf0a4902e
fix bug10115 test case