[Issue 6768] Problem with init of struct members in presence of templated opAssign

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 12 13:05:04 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6768


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |smjg at iname.com
           Platform|Other                       |All
             Blocks|                            |2573


--- Comment #2 from Stewart Gordon <smjg at iname.com> 2012-02-12 13:05:02 PST ---
(In reply to comment #1)
> In 2.057 all calls to the `dg` delegate print garbage values if the templated
> opAssign was used:

Not for me (2.057 Win32):
-----
C:\Users\Stewart\Documents\Programming\D\Tests\bugs>bz6768
Point: Point(0, 0, void delegate())
Point: Point(1244752, 4202612, void delegate())
Point: Point(1244752, 4202612, void delegate())
-----
It's especially puzzling because after construction of foo, our code hasn't
changed either foo or foo.point, but something behind the scenes has caused it
to change.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list