digitalmars.D.bugs - [Issue 5917] New: DMD gets tripped up by immutable struct members when struct contains postblit
- d-bugmail puremagic.com (37/37) May 01 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5917
- d-bugmail puremagic.com (7/7) May 01 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5917
- d-bugmail puremagic.com (12/12) May 01 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5917
http://d.puremagic.com/issues/show_bug.cgi?id=5917 Summary: DMD gets tripped up by immutable struct members when struct contains postblit Product: D Version: D2 Platform: x86 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: ultimatemacfanatic gmail.com --- Comment #0 from Christopher the Magnificent <ultimatemacfanatic gmail.com> 2011-05-01 19:26:14 PDT --- output from compiler is this: Desktop: myloginname$ dmd2 -c bitset.d Error: this is not mutable Error: this is not mutable Error: this is not mutable Desktop: myloginname$ When I delete the "immutable" keyword, then it compiles fine. Here is the input file cut down to just the bare bones of what's needed to trigger the buggy behavior: /* start of file */ struct bitset { private immutable uint _length; this(this) { } } /* end of file */ Attached is the full file, with everything that it was meant to be used with. It's a port of some Python interpreter source code to D. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 01 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5917 --- Comment #1 from Christopher the Magnificent <ultimatemacfanatic gmail.com> 2011-05-01 19:29:00 PDT --- Created an attachment (id=957) D file to trigger the bug -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 01 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5917 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kennytm gmail.com Resolution| |DUPLICATE --- Comment #2 from kennytm gmail.com 2011-05-01 23:32:49 PDT --- *** This issue has been marked as a duplicate of issue 5314 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 01 2011