Kenji Hara <> changed:

           What    |Removed                     |Added
           Keywords|rejects-valid               |diagnostic
           Severity|regression                  |normal

--- Comment #1 from Kenji Hara <> 2011-09-17 20:31:37 PDT ---
This is not regression, is diagnostic issue.

Originally "alias this" only accepts a member symbol of an aggregate itself
belongs. Therefore the code in comment #0 is invalid because A is lies outside
of B.

By fixing bug 6561, it has been fixed in 2.055, invalid alias this always
prints "undefined identifier" error. In this case, we cannot use A as B's alias
this symbol, but we can lookup A from inside B. Then this is *diagnostic* issue
that the message is not sufficiently descriptive.

In 2.054, following code doesn't work.
struct A
    static void foo(){}
struct B
    static alias A this;
void main()
{;  // want to call, but fails
If this issue is 'regression', above code should work in 2.054, but doesn't.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to