Thread overview | |||||
---|---|---|---|---|---|
|
September 27, 2007 Error: need 'this' to access member i | ||||
---|---|---|---|---|
| ||||
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 |
October 02, 2007 Re: Error: need 'this' to access member i | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | 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
|
October 02, 2007 Re: Error: need 'this' to access member i | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | "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. |
Copyright © 1999-2021 by the D Language Foundation