December 23, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=728

           Summary: incorrect initialisation of member arrays if an explicit
                    struct initializer is used
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


(Originally reported by Andrew Fedoniouk <news@terrainformatica.com> on 2005-03-10 in news:d0otkq$1fsg$1@digitaldaemon.com)

#
# import std.stdio;
#
# struct S{
#    int i;
#    int[4] bar = 4;
# }
#
# S a = {i: 1};
# S b;
#
# void main(){
#    writefln("a.bar: %s", a.bar);
#    writefln("b.bar: %s", b.bar);
# }
#

output:
> a.bar: [4,0,0,0]
> b.bar: [4,4,4,4]

expected output:
> a.bar: [4,4,4,4]
> b.bar: [4,4,4,4]

test cases: http://dstress.kuehne.cn/run/struct_initialization_06.d


-- 

January 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=728


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2007-01-03 22:06 -------
Fixed DMD 1.00


--