www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error: need 'this' to access member i

reply Ary Manzana <ary esperanto.org.ar> writes:
Since we are adding semantic analysis to Descent and we'd like to test 
it as much as possible, we'll use dstress (at least the tests that 
pass). I'll be checking which errors gives DMD, and expect the same 
results (with source range information for Descent, and some internal 
IDs for each of the possible problems).

Compiling nocompile\a\alias_28_A.d gives me:
alias_28_A.d(16): Error: need 'this' to access member i

But Descent doesn't give me an error. So I wanted to see where this 
error is reported in DMD's code, but I can't find it. I've search for:
- "need
- to access
- access member
- need 'this'
with no results. Does anyone knows where is this error reported?

Thanks,
Ary
Sep 27 2007
parent reply Ary Manzana <ary esperanto.org.ar> writes:
Anyone?

Walter? :-P

Ary Manzana wrote:
 Since we are adding semantic analysis to Descent and we'd like to test 
 it as much as possible, we'll use dstress (at least the tests that 
 pass). I'll be checking which errors gives DMD, and expect the same 
 results (with source range information for Descent, and some internal 
 IDs for each of the possible problems).
 
 Compiling nocompile\a\alias_28_A.d gives me:
 alias_28_A.d(16): Error: need 'this' to access member i
 
 But Descent doesn't give me an error. So I wanted to see where this 
 error is reported in DMD's code, but I can't find it. I've search for:
 - "need
 - to access
 - access member
 - need 'this'
 with no results. Does anyone knows where is this error reported?
 
 Thanks,
 Ary

Oct 02 2007
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Ary Manzana" <ary esperanto.org.ar> wrote in message 
news:fdtvav$2dcq$1 digitalmars.com...
 Anyone?

 Walter? :-P

 Ary Manzana wrote:
 Since we are adding semantic analysis to Descent and we'd like to test it 
 as much as possible, we'll use dstress (at least the tests that pass). 
 I'll be checking which errors gives DMD, and expect the same results 
 (with source range information for Descent, and some internal IDs for 
 each of the possible problems).

 Compiling nocompile\a\alias_28_A.d gives me:
 alias_28_A.d(16): Error: need 'this' to access member i

 But Descent doesn't give me an error. So I wanted to see where this error 
 is reported in DMD's code, but I can't find it. I've search for:
 - "need
 - to access
 - access member
 - need 'this'
 with no results. Does anyone knows where is this error reported?

 Thanks,
 Ary


It may be a function which, for reasons beyond me, may exist in the oh-so-secretive backend. See (if you can) if GDC gives the same/similar error, and if so, search through its source.
Oct 02 2007