Thread overview | |||||
---|---|---|---|---|---|
|
September 16, 2008 [Issue 2361] New: delete is allowed on invariant references. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2361 Summary: delete is allowed on invariant references. Product: D Version: 2.019 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: godaves@yahoo.com import std.stdio; void main() { C c = new C(100); writefln(c.arr); writefln("----"); writefln(gar); writefln("----"); delete c.arr; delete gar; writefln(c.arr); writefln("----"); writefln(gar); } class C { invariant int[] arr; this(size_t sz) { arr = cast(invariant int[])new int[sz]; for(size_t i = 0; i < sz; i++) cast(int)arr[i] = i; } } const sz = 100; invariant int[] gar; static this() { gar = cast(invariant int[])new int[sz]; for(size_t i = 0; i < sz; i++) cast(int)gar[i] = i; } -- |
June 29, 2011 [Issue 2361] delete is allowed on invariant references. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2361 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com Platform|x86 |All --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-30 03:46:36 EST --- https://github.com/D-Programming-Language/dmd/pull/175 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 10, 2011 [Issue 2361] delete is allowed on invariant references. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2361 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-10-09 19:48:30 PDT --- https://github.com/D-Programming-Language/dmd/commit/a0972b028e90a7a673683dad265cdd0c94ea49e1 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation