[Issue 8802] New: Problem with enums of void*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 11 10:09:35 PDT 2012


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

           Summary: Problem with enums of void*
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-10-11 10:09:32 PDT ---
Problem found by Lubos Pintes:
http://forum.dlang.org/thread/k5422g$1co5$1@digitalmars.com



enum Foo : void* {
    a = null
}
void main() {
    auto f = Foo.a;
}



DMD 2.061alpha gives:

temp.d(5): Error: no property 'a' for type '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