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?

Reply via email to