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
Comment #2 by github-bugzilla — 2013-05-18T22:29:42Z
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