[Issue 7047] New: alias error in struct only for dmd1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 1 23:52:12 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7047

           Summary: alias error in struct only for dmd1
           Product: D
           Version: D1
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: changlon at gmail.com


--- Comment #0 from changlon <changlon at gmail.com> 2011-12-01 23:51:08 PST ---
dmd 1.071 error .

struct Test1 {
    alias typeof(this) This;
    alias This* pThis;
    int number ;
    void Init(){
        static void Callback (void* user_data){
            pThis _this = cast(pThis) user_data;
            auto i = _this.number ;
        }
    }
}

------------
test.d(10): Error: no property 'number' for type 'Test1*'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list