[Issue 6777] New: alias this + cast(void*) == bug
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Oct  6 11:44:11 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6777
           Summary: alias this + cast(void*) == bug
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2011-10-06 11:43:25 PDT ---
struct S {}
class C {
    S s;
    alias s this;
}
void main() {
    auto c = new C;
    auto p = cast(void*) c;
}
test.d(10): Error: cannot cast from S to void*
-- 
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