www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8802] New: Problem with enums of void*

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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: -------
Oct 11 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich gmail.com
         AssignedTo|nobody puremagic.com        |andrej.mitrovich gmail.com



15:58:45 PST ---
Note that there's another separate and unrelated bug here, you can't compile
this with -g.

D:\dev\code\d_code>dmd -g test.d
test.d(4): Error: Integer constant expression expected instead of null
test.d(4): Error: Integer constant expression expected instead of null

I'm not sure if this is filed yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802




16:26:32 PST ---
https://github.com/D-Programming-Language/dmd/pull/1330

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802






 I'm not sure if this is filed yet.
I think that's already in Bugzilla (not filed by me). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 27 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario gmx.de



PST ---

 Note that there's another separate and unrelated bug here, you can't compile
 this with -g.
 
 D:\dev\code\d_code>dmd -g test.d
 test.d(4): Error: Integer constant expression expected instead of null
 test.d(4): Error: Integer constant expression expected instead of null
 
 I'm not sure if this is filed yet.
This is issue 5168. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 27 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bfd3af86dca2a4a1c0efb533a874812ca33ac515
Fix Issue 8802 - proplem with enum of void*

https://github.com/D-Programming-Language/dmd/commit/c377a6451302e3bfd8cf74e72b34ca64642fb45a


Issue 8802 - Lookup problem with void* enum base type

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8802


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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