Re: Bug in compiler?

2014-12-15 Thread via Digitalmars-d
On Monday, 15 December 2014 at 14:33:51 UTC, ketmar via Digitalmars-d wrote: On Mon, 15 Dec 2014 16:01:35 +0200 Shachar Shemesh via Digitalmars-d wrote: Please consider the following program: import std.exception; void main() { struct A { int a; @disable this(this);

Re: Bug in compiler?

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 15:00:56 UTC, Marc Schütz wrote: On Monday, 15 December 2014 at 14:33:51 UTC, ketmar via Digitalmars-d wrote: On Mon, 15 Dec 2014 16:01:35 +0200 Shachar Shemesh via Digitalmars-d wrote: Please consider the following program: import std.exception; void main()

Re: Bug in compiler?

2014-12-15 Thread ketmar via Digitalmars-d
On Mon, 15 Dec 2014 16:01:35 +0200 Shachar Shemesh via Digitalmars-d wrote: > Please consider the following program: > import std.exception; > > void main() > { > struct A { > int a; > > @disable this(this); > @disable ref A opAssign(const ref A); > > r

Bug in compiler?

2014-12-15 Thread Shachar Shemesh via Digitalmars-d
Please consider the following program: import std.exception; void main() { struct A { int a; @disable this(this); @disable ref A opAssign(const ref A); ref A opOpAssign(string op: "~")(int data) { a += data; return this; }