May 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3036

           Summary: Number is allowed as struct initializer, but doesn't
                    work
           Product: D
           Version: 2.030
          Platform: PC
               URL: http://www.digitalmars.com/webnews/newsgroups.php?art_
                    group=digitalmars.D.learn&article_id=16699
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: maxmo@pochta.ru


struct S {int x;}

int main()
{
    S i=5;
    writeln(i.x); // prints 0
    return 0;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 07, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3036


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug@yahoo.com.au
         Resolution|                            |DUPLICATE




--- Comment #1 from Don <clugdbug@yahoo.com.au>  2009-08-07 01:29:07 PDT ---


*** This issue has been marked as a duplicate of issue 2469 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home