dmd 1.070 and 2.055 release

Max Samukha maxter at spambox.com
Sun Sep 11 09:08:42 PDT 2011


On 09/08/2011 08:21 AM, Walter Bright wrote:
> By far, the most number of bug fixes ever!
>
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.070.zip
>
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.055.zip

This test case

struct S
{
     @disable this();
     this(int x)
     {
     }
}

class C
{
     S s;
     this()
     {
         s = S(42);
     }
}

void main()
{
     auto c = new C;
}

yields Error: default construction is disabled for type C

Is it a bug?


More information about the Digitalmars-d-announce mailing list