www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - merge 2.061-2 error building rt/image.d (osx)

reply "Paolo Invernizzi" <pinver pinver.com> writes:
Hi all,

I've checked out the branch in subject, and I'm having the 
following error:

ldc/runtime/druntime/src/rt/image.d(43): Error: (Image __ctmp5 = 
0;
  , __ctmp5).this(i) is not an lvalue
ldc/runtime/druntime/src/rt/image.d(58): Error: (Image __ctmp6 = 
0;
  , __ctmp6).this(cast(uint)i) is not an lvalue

It's a known issue of the compiler? If not, I can open a bug 
report for that.

Thank you in advance,
Paolo
Jan 28 2013
parent reply "David Nadlinger" <see klickverbot.at> writes:
On Monday, 28 January 2013 at 14:59:59 UTC, Paolo Invernizzi 
wrote:
 ldc/runtime/druntime/src/rt/image.d(43): Error: (Image __ctmp5 
 = 0;
  , __ctmp5).this(i) is not an lvalue
 ldc/runtime/druntime/src/rt/image.d(58): Error: (Image __ctmp6 
 = 0;
  , __ctmp6).this(cast(uint)i) is not an lvalue

 It's a known issue of the compiler? If not, I can open a bug 
 report for that.
This seems to be an OSX-only issue caused by the struct literal rvalue changes in DMD 2.061. Please submit an issue at GitHub - or better yet, a pull request (just replace the literal with a temporary "auto img = Image(i)" declared on the previous line). David
Jan 28 2013
parent "Paolo Invernizzi" <pinver pinver.com> writes:
Hi David,

I submitted a pull request against the ldc branch of the druntime 
repo: this is my first pull request, git bites, so please be 
kind... (I use bazaar at work).

Cheers,
Paolo



On Monday, 28 January 2013 at 16:01:50 UTC, David Nadlinger wrote:
 This seems to be an OSX-only issue caused by the struct literal 
 rvalue changes in DMD 2.061.

 Please submit an issue at GitHub - or better yet, a pull 
 request (just replace the literal with a temporary "auto img = 
 Image(i)" declared on the previous line).

 David
Jan 28 2013