[Issue 6178] Struct inside the AA are not init correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 16 01:46:20 PST 2013


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



--- Comment #14 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-01-16 01:46:18 PST ---
(In reply to comment #13)
> Well, seems in 2.061 the behavior was changed. 
> 
> Without any options, the output is like:
> 
> -1154412584 opAssign called (big value)
> 1 dtor called
> -1154412584 dtor called
> 
> With -release or -noboundscheck the output is more robust:
> 
> 0 opAssign called
> 1 dtor called
> 0 dtor called
> 
> With -O option output is:
> 
> 32638 opAssign called // close to signed short int max
> 1 dtor called
> 32638 dtor called

This is shitty but I'll use -release for the moment. BTW it seems 
to require both module with struct  *and* the one where AA is used to be
compiled wiht -release.

-- 
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